Fix document about best_iteration (#7324)

This commit is contained in:
Jiaming Yuan 2021-10-15 06:30:46 +08:00 committed by GitHub
parent 4ddf8d001c
commit e6a142fe70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -203,7 +203,7 @@ If early stopping is enabled during training, you can get predictions from the b
.. code-block:: python
ypred = bst.predict(dtest, iteration_range=(0, bst.best_iteration))
ypred = bst.predict(dtest, iteration_range=(0, bst.best_iteration + 1))
Plotting
--------