From c42e3fbcf3901eec73fcdbf02526f611ef3ed05f Mon Sep 17 00:00:00 2001 From: Jiaming Yuan Date: Tue, 19 Oct 2021 02:21:16 +0800 Subject: [PATCH] [doc] Fix early stopping document. (#7334) --- python-package/xgboost/training.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-package/xgboost/training.py b/python-package/xgboost/training.py index 3204dc2b3..611a7fbff 100644 --- a/python-package/xgboost/training.py +++ b/python-package/xgboost/training.py @@ -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.