[R] Re-generate Roxygen2 doc (#6915)

This commit is contained in:
Philip Hyunsu Cho
2021-04-29 11:55:07 -07:00
committed by GitHub
parent 20f34d9776
commit 5472ef626c
10 changed files with 23 additions and 28 deletions

View File

@@ -160,7 +160,7 @@ Adapted from \url{https://en.wikipedia.org/wiki/Cross-validation_\%28statistics\
}
\examples{
data(agaricus.train, package='xgboost')
dtrain <- xgb.DMatrix(agaricus.train$data, label = agaricus.train$label)
dtrain <- with(agaricus.train, xgb.DMatrix(data, label = label))
cv <- xgb.cv(data = dtrain, nrounds = 3, nthread = 2, nfold = 5, metrics = list("rmse","auc"),
max_depth = 3, eta = 1, objective = "binary:logistic")
print(cv)