Skip to content

Commit

Permalink
Fix comment in cross_validation.py (dmlc#1923)
Browse files Browse the repository at this point in the history
cv() doesn't output std_value because show_stdv is set to False.
  • Loading branch information
mnogu authored and terrytangyuan committed Jan 2, 2017
1 parent 7e07b2b commit 8b82742
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions demo/guide-python/cross_validation.py
Expand Up @@ -17,8 +17,7 @@

print ('running cross validation, disable standard deviation display')
# do cross validation, this will print result out as
# [iteration] metric_name:mean_value+std_value
# std_value is standard deviation of the metric
# [iteration] metric_name:mean_value
res = xgb.cv(param, dtrain, num_boost_round=10, nfold=5,
metrics={'error'}, seed = 0,
callbacks=[xgb.callback.print_evaluation(show_stdv=False),
Expand Down

0 comments on commit 8b82742

Please sign in to comment.