xgboost/R-package
Vadim Khotilovich 2b5b96d760 [R] various R code maintenance (#1964)
* [R] xgb.save must work when handle in nil but raw exists

* [R] print.xgb.Booster should still print other info when handle is nil

* [R] rename internal function xgb.Booster to xgb.Booster.handle to make its intent clear

* [R] rename xgb.Booster.check to xgb.Booster.complete and make it visible; more docs

* [R] storing evaluation_log should depend only on watchlist, not on verbose

* [R] reduce the excessive chattiness of unit tests

* [R] only disable some tests in windows when it's not 64-bit

* [R] clean-up xgb.DMatrix

* [R] test xgb.DMatrix loading from libsvm text file

* [R] store feature_names in xgb.Booster, use them from utility functions

* [R] remove non-functional co-occurence computation from xgb.importance

* [R] verbose=0 is enough without a callback

* [R] added forgotten xgb.Booster.complete.Rd; cran check fixes

* [R] update installation instructions
2017-01-21 11:22:46 -08:00
..
2015-01-20 15:51:42 -08:00
2016-12-02 20:19:03 -08:00
2017-01-21 11:22:46 -08:00
2016-12-16 21:56:10 +01:00
2015-07-24 11:58:02 -07:00
2016-12-28 11:32:56 -08:00
2016-12-28 11:32:56 -08:00
2017-01-04 23:31:05 -08:00
2016-12-02 20:19:03 -08:00

XGBoost R Package for Scalable GBM

CRAN Status Badge CRAN Downloads Documentation Status

Resources

Installation

We are on CRAN now. For stable/pre-compiled(for Windows and OS X) version, please install from CRAN:

install.packages('xgboost')

You can also install from our weekly updated drat repo:

install.packages("xgboost", repos=c("http://dmlc.ml/drat/", getOption("repos")), type="source")

Important Due to the usage of submodule, install_github is no longer support to install the latest version of R package. For up-to-date version, please install from github.

Windows users will need to install RTools first. They also need to download MinGW-W64 using x86_64 architecture during installation.

Run the following command to add MinGW to PATH in Windows if not already added.

PATH %PATH%;C:\Program Files\mingw-w64\x86_64-5.3.0-posix-seh-rt_v4-rev0\mingw64\bin

To compile xgboost at the root of your storage, run the following bash script.

git clone --recursive https://github.com/dmlc/xgboost
cd xgboost
git submodule init
git submodule update
alias make='mingw32-make'
cd dmlc-core
make -j4
cd ../rabit
make lib/librabit_empty.a -j4
cd ..
cp make/mingw64.mk config.mk
make -j4

Run the following R script to install xgboost package from the root directory.

install.package('devtools') # if not installed
setwd('C:/xgboost/')
library(devtools)
install('R-package')

For more detailed installation instructions, please see here.

Examples