-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[python-package] Early Stopping does not work in LGBMClassifier #6244
Comments
Hey @ohbtorres, thanks for using LightGBM. Early stopping isn't supported in dart, you should be getting this warning: LightGBM/python-package/lightgbm/callback.py Line 325 in 0a9a6bb
Is it not showing? |
I think we could add it here.
Did you disable Python's warnings? Running your example I get the following:
|
I didn't. I don't know what coulb be happening. |
Would you like to add that dart isn't supported in the early stopping callback docstring? |
It's been over a year without a response here, so I put up a PR adding that note: #6846 |
Description
Using
lightgbm.early_stopping
does not work while using Scikit-learn API, and the training still remains after the early stop condition occursReproducible example
The result will be this

The binary_logloss starts with 0.693169 and end with 0.697759 and no stopping happened
Environment info
LightGBM version or commit hash: 4.1.0
Command(s) you used to install LightGBM
pandas==2.0.3
numpy==1.24.4
The text was updated successfully, but these errors were encountered: