Skip to content
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] Improve error message for plot_metric with Booster #4709

Merged
merged 2 commits into from
Oct 26, 2021

Conversation

js850
Copy link
Contributor

@js850 js850 commented Oct 23, 2021

If plot_metric is used with the Booster type, throw an error explaining how to correctly plot metrics using Booster.

This addresses issue #4702 .

@StrikerRUS StrikerRUS changed the title Improve error message for plot_metric with Booster [python] Improve error message for plot_metric with Booster Oct 23, 2021
Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

@js850 Thanks a lot for raising the issue about ambiguity in the docs you've noticed and for fixing it! However, I've suggested two small improvements below to the current wording.

python-package/lightgbm/plotting.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@StrikerRUS StrikerRUS left a comment

Choose a reason for hiding this comment

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

@js850 LGTM! Thank you very much for your contribution!

@StrikerRUS
Copy link
Collaborator

Won't merge before @shiyu1994's review (#4709 (comment)).

@shiyu1994 shiyu1994 merged commit 1cc84b3 into microsoft:master Oct 26, 2021
@github-actions
Copy link

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 Aug 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants