-
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] lgb.cv
mixes booster verbosity with evaluation metric monitoring
#6162
Comments
Please quickly review and fix. This mix up of loggings is very annoying. I am using the Python API (not R) and it is frustrating to see all those info and warning messages that are of no interest to me. |
@bennyjg Thanks for using LightGBM. The issue you're commenting on here is specific to the R package. If you'd like to suggest different behavior for the Python package, please first check that there aren't other issues at https://github.com/microsoft/LightGBM/issues already tracking what you're asking about, then open a new issue with a minimal, reproducible example showing the behavior you're currently seeing and explaining the behavior you'd expect/prefer. |
Thanks very much for taking the time to write this up! I agree with the proposal that these things should be separated. |
When one calls
lgb.cv
, one usually wants to monitor the evaluation metric in the training and validation set as the fitting procedure happens, and one usually doesn't want to know about every internal detail of what's happening inside each boosting round.lgb.cv
takes averbosity
parameter, with levels for fatal/warning/info/debug, but the messages about the metric of interest in the training and validation data do not correspond to any of those. Currently, they'd be bumped together withinfo
, even though they don't say it in the message.But there's no current arrangement in which one would only get the messages about the metrics and not the internal messages from each boosting round - example:
Whereas one would usually want to see only these:
And without the
[1]
that gets added by R's print function.Should ideally have a separate parameter for deciding whether to print the metric that wouldn't be tied to the booster's internals.
The text was updated successfully, but these errors were encountered: