From 59601e4642135b9680efe06b30390ef8a3888c95 Mon Sep 17 00:00:00 2001 From: fis Date: Mon, 18 Oct 2021 13:14:17 +0800 Subject: [PATCH] [doc] Fix early stopping document. --- 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 3204dc2b3ff5..611a7fbffab5 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.