Skip to content

Commit

Permalink
[python-package] add a note about DART in early_stopping docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb committed Feb 28, 2025
1 parent 6b624fb commit 1c3840d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions python-package/lightgbm/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,11 @@ def early_stopping(
To check only the first metric set ``first_metric_only`` to True.
The index of iteration that has the best performance will be saved in the ``best_iteration`` attribute of a model.
.. note::
If using ``boosting_type="dart"``, this callback has no effect and early stopping
will not be performed.
Parameters
----------
stopping_rounds : int
Expand Down

0 comments on commit 1c3840d

Please sign in to comment.