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

@@ -46,6 +46,11 @@
#'
#' 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")
#' @export
#'
xgb.cv <- function(params=list(), data, nrounds, nfold, label = NULL,