-
-
Notifications
You must be signed in to change notification settings - Fork 26.5k
FEA add LearningCurveDisplay to show plot learning curve #24084
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
FEA add LearningCurveDisplay to show plot learning curve #24084
Conversation
β¦8019) Co-authored-by: Maren Westermann <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]>
β¦ion(scikit-learn#24093) Co-authored-by: Guillaume Lemaitre <[email protected]>
β¦umentation for parameter method (scikit-learn#24098)
β¦cikit-learn#24094) Co-authored-by: Guillaume Lemaitre <[email protected]>
β¦#24044) Co-authored-by: Julien Jerphanion <[email protected]>
β¦scikit-learn#23927) Co-authored-by: Maren Westermann <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]> Co-authored-by: Meekail Zain <[email protected]> Co-authored-by: Thomas J. Fan <[email protected]>
Co-authored-by: Julien Jerphanion <[email protected]>
ArturoAmorQ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @glemaitre, it will certainly be a nice feature!
Here is a batch of comments.
Co-authored-by: JΓ©rΓ©mie du Boisberranger <[email protected]>
jeremiedbb
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ArturoAmorQ
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A second pass of comments, after-which the PR LGTM ;)
| if std_display_style not in ("errorbar", "fill_between", None): | ||
| raise ValueError( | ||
| f"Unknown std_display_style: {std_display_style}. Should be one of" | ||
| " 'errorbar', 'fill_between', or None." | ||
| ) | ||
|
|
||
| if score_type not in ("test", "train", "both"): | ||
| raise ValueError( | ||
| f"Unknown score_type: {score_type}. Should be one of 'test', " | ||
| "'train', or 'both'." | ||
| ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use the @validate_params decorator here? The tests should then be modified accordingly, though :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current tests for validating parameters are written for Python functions and not class methods.
We will do the changes in the future but I would not include the required changes in this PR.
Co-authored-by: Arturo Amor <[email protected]>
Co-authored-by: Arturo Amor <[email protected]>
|
The rendering issue is fixed and the last comments have been addressed. Let's merge. Thanks @glemaitre ! |
Add a new display to plot the output of
learning_curvewith sensible default.