Fix comment in cross_validation.py (#1923)
cv() doesn't output std_value because show_stdv is set to False.
This commit is contained in:
parent
7e07b2b93d
commit
8b827425b2
@ -17,8 +17,7 @@ xgb.cv(param, dtrain, num_round, nfold=5,
|
|||||||
|
|
||||||
print ('running cross validation, disable standard deviation display')
|
print ('running cross validation, disable standard deviation display')
|
||||||
# do cross validation, this will print result out as
|
# do cross validation, this will print result out as
|
||||||
# [iteration] metric_name:mean_value+std_value
|
# [iteration] metric_name:mean_value
|
||||||
# std_value is standard deviation of the metric
|
|
||||||
res = xgb.cv(param, dtrain, num_boost_round=10, nfold=5,
|
res = xgb.cv(param, dtrain, num_boost_round=10, nfold=5,
|
||||||
metrics={'error'}, seed = 0,
|
metrics={'error'}, seed = 0,
|
||||||
callbacks=[xgb.callback.print_evaluation(show_stdv=False),
|
callbacks=[xgb.callback.print_evaluation(show_stdv=False),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user