[doc] Fix early stopping document. (#7334)

This commit is contained in:
Jiaming Yuan
2021-10-19 02:21:16 +08:00
committed by GitHub
parent 4fd149b3a2
commit c42e3fbcf3

View File

@@ -122,7 +122,7 @@ def train(params, dtrain, num_boost_round=10, evals=(), obj=None, feval=None,
stopping.
If there's more than one metric in the **eval_metric** parameter given in
**params**, the last metric will be used for early stopping.
If early stopping occurs, the model will have three additional fields:
If early stopping occurs, the model will have two additional fields:
``bst.best_score``, ``bst.best_iteration``.
evals_result: dict
This dictionary stores the evaluation results of all the items in watchlist.