Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] add a note about DART in early_stopping docstring #6846

Merged
merged 3 commits into from
Mar 4, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
[python-package] add a note about DART in early_stopping docstring
  • Loading branch information
jameslamb committed Feb 28, 2025
commit 1c3840da39e21bfcb4a8524a9e2ac438c023b7d8
5 changes: 5 additions & 0 deletions python-package/lightgbm/callback.py
Original file line number Diff line number Diff line change
@@ -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
Loading