Fixed minor lint issue

This commit is contained in:
Yuan (Terry) Tang 2015-11-12 09:01:05 -06:00
parent a2216c12a0
commit 4fb6153eed

View File

@ -39,8 +39,8 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None,
If there's more than one, will use the last. If there's more than one, will use the last.
Returns the model from the last iteration (not the best one). Returns the model from the last iteration (not the best one).
If early stopping occurs, the model will have three additional fields: If early stopping occurs, the model will have three additional fields:
bst.best_score, bst.best_iteration and bst.best_ntree_limit. bst.best_score, bst.best_iteration and bst.best_ntree_limit.
(Use bst.best_ntree_limit to get the correct value if num_parallel_tree (Use bst.best_ntree_limit to get the correct value if num_parallel_tree
and/or num_class appears in the parameters) and/or num_class appears in the parameters)
evals_result: dict evals_result: dict
This dictionary stores the evaluation results of all the items in watchlist. This dictionary stores the evaluation results of all the items in watchlist.