Skip to content

Commit 6f9c9ae

Browse files
authored
[R] update rst docs (dmlc#11081)
1 parent 85ccb8f commit 6f9c9ae

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

demo/README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,36 +24,31 @@ Code Examples
2424
-------------
2525
### Features Walkthrough
2626

27+
_Note: for the R package, see the in-package examples and vignettes instead_
28+
2729
This is a list of short codes introducing different functionalities of xgboost packages.
2830

2931
* Basic walkthrough of packages
3032
[python](guide-python/basic_walkthrough.py)
31-
[R](../R-package/demo/basic_walkthrough.R)
3233
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/basic_walkthrough.jl)
3334
[PHP](https://github.com/bpachev/xgboost-php/blob/master/demo/titanic_demo.php)
3435
* Customize loss function, and evaluation metric
3536
[python](guide-python/custom_objective.py)
36-
[R](../R-package/demo/custom_objective.R)
3737
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/custom_objective.jl)
3838
* Boosting from existing prediction
3939
[python](guide-python/boost_from_prediction.py)
40-
[R](../R-package/demo/boost_from_prediction.R)
4140
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/boost_from_prediction.jl)
4241
* Predicting using first n trees
4342
[python](guide-python/predict_first_ntree.py)
44-
[R](../R-package/demo/predict_first_ntree.R)
4543
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/predict_first_ntree.jl)
4644
* Generalized Linear Model
4745
[python](guide-python/generalized_linear_model.py)
48-
[R](../R-package/demo/generalized_linear_model.R)
4946
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/generalized_linear_model.jl)
5047
* Cross validation
5148
[python](guide-python/cross_validation.py)
52-
[R](../R-package/demo/cross_validation.R)
5349
[Julia](https://github.com/antinucleon/XGBoost.jl/blob/master/demo/cross_validation.jl)
5450
* Predicting leaf indices
5551
[python](guide-python/predict_leaf_indices.py)
56-
[R](../R-package/demo/predict_leaf_indices.R)
5752

5853
### Basic Examples by Tasks
5954

doc/R-package/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Get Started
1414
***********
1515
* Checkout the :doc:`Installation Guide </install>` contains instructions to install xgboost, and :doc:`Tutorials </tutorials/index>` for examples on how to use XGBoost for various tasks.
1616
* Read the `API documentation <https://cran.r-project.org/web/packages/xgboost/xgboost.pdf>`_.
17-
* Please visit `Walk-through Examples <https://github.com/dmlc/xgboost/tree/master/R-package/demo>`_.
1817

1918
*********
2019
Tutorials

doc/get_started.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ R
4444
train <- agaricus.train
4545
test <- agaricus.test
4646
# fit model
47-
bst <- xgboost(data = train$data, label = train$label, max.depth = 2, eta = 1, nrounds = 2,
47+
bst <- xgboost(x = train$data, y = factor(train$label),
48+
max.depth = 2, eta = 1, nrounds = 2,
4849
nthread = 2, objective = "binary:logistic")
4950
# predict
5051
pred <- predict(bst, test$data)

0 commit comments

Comments
 (0)