chg cv
This commit is contained in:
@@ -3,7 +3,8 @@ require(methods)
|
||||
# Directly read in local file
|
||||
dtrain <- xgb.DMatrix("agaricus.txt.train")
|
||||
|
||||
history <- xgb.cv(list("max_depth"=3, "eta"=1,
|
||||
"objective"="binary:logistic"),
|
||||
dtrain, nround=3, nfold = 5, "eval_metric"="error")
|
||||
history <- xgb.cv( data = dtrain, nround=3, nfold = 5, metrics=list("rmse","auc"),
|
||||
"max_depth"=3, "eta"=1,
|
||||
"objective"="binary:logistic")
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user