Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@glemaitre
Copy link
Member

Add a new display to plot the output of learning_curve with sensible default.

@glemaitre glemaitre marked this pull request as draft August 2, 2022 13:12
glemaitre and others added 25 commits August 2, 2022 15:26
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Meekail Zain <[email protected]>
Co-authored-by: Thomas J. Fan <[email protected]>
@glemaitre glemaitre marked this pull request as ready for review September 29, 2022 09:33
@glemaitre glemaitre added this to the 1.2 milestone Sep 29, 2022
Copy link
Member

@ArturoAmorQ ArturoAmorQ left a 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.

Copy link
Member

@jeremiedbb jeremiedbb left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@ArturoAmorQ ArturoAmorQ left a 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 ;)

Comment on lines +158 to +168
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'."
)
Copy link
Member

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 :(

Copy link
Member Author

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.

@jeremiedbb
Copy link
Member

The rendering issue is fixed and the last comments have been addressed. Let's merge. Thanks @glemaitre !

@jeremiedbb jeremiedbb merged commit 758fe0d into scikit-learn:main Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.