refine style with max.depth
This commit is contained in:
@@ -15,7 +15,7 @@ xgb.cv(params = list(), data, nrounds, nfold, label = NULL, showsd = TRUE,
|
||||
\item \code{binary:logistic} logistic regression for classification
|
||||
}
|
||||
\item \code{eta} step size of each boosting step
|
||||
\item \code{max_depth} maximum depth of the tree
|
||||
\item \code{max.depth} maximum depth of the tree
|
||||
\item \code{nthread} number of thread used in training, if not set, all threads are used
|
||||
}
|
||||
|
||||
@@ -67,6 +67,6 @@ This function only accepts an \code{xgb.DMatrix} object as the input.
|
||||
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")
|
||||
"max.depth"=3, "eta"=1, "objective"="binary:logistic")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user