Skip to content

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

Merged
StrikerRUS merged 3 commits into
masterfrom
docs/dart-early-stopping
Mar 4, 2025
Merged

StrikerRUS merged 3 commits into
masterfrom
docs/dart-early-stopping

Conversation

@jameslamb

@jameslamb jameslamb commented Feb 28, 2025 •

Copy link
Copy Markdown
Member

fixes #6244

Adds a note about DART boosting disabling early stopping in the callback.early_stopping() docstring, to make that a bit more visible (especially for people running Python with warnings filtered out).

Notes for Reviewers

I activated this branch on readthedocs so we can see how this renders.

build link: https://readthedocs.org/projects/lightgbm/builds/27344381/

@StrikerRUS

Copy link
Copy Markdown
Collaborator

Maybe add the same note in R docstrings for lightgbm(), lgb.cv() and lgb.train() functions?
https://github.com/microsoft/LightGBM/blob/6b624fb50187b17db23c2c3ccc46329d156e4fb6/R-package/R/lightgbm.R#L58

@jameslamb

Copy link
Copy Markdown
Member Author

Sure, good idea! Just pushed 7dfadd1 doing that.

Here's how it renders locally for me in ?lightgbm::lgb.train.

Screenshot 2025-03-02 at 8 24 24β€―PM

@jameslamb jameslamb changed the title [python-package] add a note about DART in early_stopping docstring [docs] add a note about DART in early_stopping docstring Mar 3, 2025

@StrikerRUS StrikerRUS left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks a lot for this clarification note!

@StrikerRUS
StrikerRUS merged commit 6437645 into master Mar 4, 2025
@StrikerRUS
StrikerRUS deleted the docs/dart-early-stopping branch March 4, 2025 16:57
@github-actions

github-actions Bot commented Mar 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked since there has not been any recent activity since it was closed.
To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Mar 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[python-package] Early Stopping does not work in LGBMClassifier

2 participants