-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[R-package] [BUG] Using lgb.train()
with booster = "dart"
gives warning regardless of early_stopping_rounds
value
#6612
Comments
Thanks for using LightGBM, and for the excellent report with reproducible examples! At first I thought this was similar to #6406, but now I think I see the bug and it's slightly different. This warning should only be raised if early stopping was enabled: LightGBM/R-package/R/lgb.train.R Lines 260 to 261 in 874f6fb
Would you like to contribute a fix? It'd mean:
|
Hi @jameslamb, It would be a privilege to contribute with a fix. Allow me some time to get more familiar with the source code so I can contribute optimally. I have skimmed through the unittests, and I haven't stumbled upon any tests that uses If that is the case then I could write a unit test that loops through the various Also, I could update the Best, |
You could modify this test:
So that it checks that the warning is only raised when That'd cover Then write one other similar test (in that same file is fine, right after that test) using |
Hi @jameslamb, I am running into the following Unless you want to opt for a mix of |
Thanks for working on this. Let's please keep all conversation about the exact implementation you're proposing in the place where the code lives: #6619. I'll respond over there. |
Hi,
I found this (trivial) bug - well, I assume it is a bug so feel free to close if it is not the case. Regardless of the set values of
early_stopping_rounds
thelgb.tran()
-function throws a warning message when using thedart
-booster.Below is a minimal working example with three cases displaying the behavior, and the source of the (possible) bug. In all cases the warning occurs, and I have only changed the value of
early_stopping_rounds
!MWE
Created on 2024-08-15 with reprex v2.1.0
Session info
Source of bug
In the code below the
waning()
will be triggered regardless of theearly_stopping_rounds
value.LightGBM/R-package/R/lgb.train.R
Lines 260 to 271 in 6025283
Best,
Serkan
The text was updated successfully, but these errors were encountered: