-
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
Unable to suppress parameter alias related warnings #4518
Comments
@jameslamb I believe it's rather |
sure, fine with me |
None of these comments or links work. They are circuitous to suppressing the [LightGBM] [Warning] |
@rm17tink What exact warning you're trying to suppress? We aren't aware of any warnings other than
which cannot be suppressing by |
These warnings are coming from LightGBM/include/LightGBM/config.h Line 1135 in 23da5fc
which is called before setting the logging level. I believe if we set the logging level before this: Line 45 in 23da5fc
we can fix the issue. I've tried it locally and it works, I'm jut not sure if it's the right thing, so I'd like to discuss this first before opening a PR. |
How will we know a requested logging level without parsing user's params ( |
What I was doing was something like:
before the alias call. So the default verbosity is used if it wasn't specified or it is set to what the user specified, and then the aliases are resolved for the other params. |
I like your approach @jmoralez ! I'd support special handling of verbosity in |
This issue has been automatically locked since there has not been any recent activity since it was closed. |
Description
Many parameter aliases trigger warnings that may be annoying and repetitive, specially in the context of model selection using grid search. These warnings can't be silenced except by changing the parameter to some specific alias. Often, this specific alias is not the one "recommended" (most used or first listed) in the documentation.
Reproducible example
See #3641 (comment)
Environment info
LightGBM version or commit hash: 3.2.1
The text was updated successfully, but these errors were encountered: