42 lines
1.8 KiB
Markdown
42 lines
1.8 KiB
Markdown
R package for xgboost
|
|
=====================
|
|
|
|
[](http://cran.r-project.org/web/packages/xgboost)
|
|
[](http://cran.rstudio.com/web/packages/xgboost/index.html)
|
|
[](http://xgboost.readthedocs.org/en/latest/R-package/index.html)
|
|
|
|
Resources
|
|
---------
|
|
* [XGBoost R Package Online Documentation](http://xgboost.readthedocs.org/en/latest/R-package/index.html)
|
|
- Check this out for detailed documents, examples and tutorials.
|
|
|
|
Installation
|
|
------------
|
|
|
|
We are [on CRAN](https://cran.r-project.org/web/packages/xgboost/index.html) now. For stable/pre-compiled(for Windows and OS X) version, please install from CRAN:
|
|
|
|
```r
|
|
install.packages('xgboost')
|
|
```
|
|
|
|
For up-to-date version, please install from github. Windows user will need to install [RTools](http://cran.r-project.org/bin/windows/Rtools/) first.
|
|
|
|
```r
|
|
devtools::install_git('git://github.com/dmlc/xgboost',subdir='R-package')
|
|
```
|
|
|
|
You can also install from our weekly updated drat repo:
|
|
```r
|
|
install.packages("drat", repos="https://cran.rstudio.com")
|
|
drat:::addRepo("dmlc")
|
|
install.packages("xgboost", repos="http://dmlc.ml/drat/", type="source")
|
|
```
|
|
|
|
For more detailed installation instructions, please see [here](http://xgboost.readthedocs.org/en/latest/build.html#r-package-installation).
|
|
|
|
Examples
|
|
--------
|
|
|
|
* Please visit [walk through example](demo).
|
|
* See also the [example scripts](../demo/kaggle-higgs) for Kaggle Higgs Challenge, including [speedtest script](../demo/kaggle-higgs/speedtest.R) on this dataset and the one related to [Otto challenge](../demo/kaggle-otto), including a [RMarkdown documentation](../demo/kaggle-otto/understandingXGBoostModel.Rmd).
|