Fix bug in Cross Validation when showsd = FALSE

This commit is contained in:
pommedeterresautee
2015-02-01 14:08:48 +01:00
parent 9f5929497a
commit a17e29b130
2 changed files with 4 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ cat('running cross validation, disable standard deviation display\n')
# [iteration] metric_name:mean_value+std_value
# std_value is standard deviation of the metric
xgb.cv(param, dtrain, nround, nfold=5,
metrics={'error'}, , showsd = FALSE)
metrics={'error'}, showsd = FALSE)
###
# you can also do cross validation with cutomized loss function