replace iris in docs

This commit is contained in:
hetong
2014-09-06 22:48:08 -07:00
parent ddf715953a
commit fbecd163c5
22 changed files with 117 additions and 76 deletions

View File

@@ -63,4 +63,10 @@ Number of threads can also be manually specified via "nthread" parameter.
This function only accepts an \code{xgb.DMatrix} object as the input.
}
\examples{
data(agaricus.train, package='xgboost')
dtrain <- xgb.DMatrix(agaricus.train$data, label = agaricus.train$label)
history <- xgb.cv(data = dtrain, nround=3, nfold = 5, metrics=list("rmse","auc"),
"max_depth"=3, "eta"=1, "objective"="binary:logistic")
}