8000 DOC Specify the meaning of scoring=None in sklearn.metrics.check_scoring by karen-pal · Pull Request #20367 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

DOC Specify the meaning of scoring=None in sklearn.metrics.check_scoring #20367

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

Merged

Conversation

karen-pal
Copy link
Contributor

Reference Issues/PRs

Partially addresses #17295.

What does this implement/fix? Explain your changes.

This PR specifies the meaning of scoring=None for the function check_scoring in the sklearn.metrics._scorer module.

#DataUmbrella sprint

@@ -432,6 +432,7 @@ def check_scoring(estimator, scoring=None, *, allow_none=False):
A string (see model evaluation documentation) or
a scorer callable object / function with signature
``scorer(estimator, X, y)``.
If None, the provided estimator object's scoring method is used.
Copy link
Member

Choose a reason for hiding this comment

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

It should probably be score method, with ticks, to be really explicit?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

that makes sense! I'll change it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

just done it @amueller . thanks for the feedback!

@@ -432,6 +432,7 @@ def check_scoring(estimator, scoring=None, *, allow_none=False):
A string (see model evaluation documentation) or
a scorer callable object / function with signature
``scorer(estimator, X, y)``.
If None, the provided estimator object's 'score' method is used.
Copy link
Member
@amueller amueller Jun 26, 2021

Choose a reason for hiding this comment

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

Sorry for being unclear, I think it should be backticks, which will make it be rendered as code. `score`

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no problem, i fixed it!

Copy link
Member
@amueller amueller left a comment

Choose a reason for hiding this comment

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

thanks, looks good!

@thomasjpfan thomasjpfan changed the title Specify the meaning of scoring=None on check_scoring, of metrics._scorer DOC Specify the meaning of scoring=None in sklearn.metrics.check_scoring Jun 26, 2021
Copy link
Member
@thomasjpfan thomasjpfan left a comment

Choose a reason for hiding this comment

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

Thank you for the PR @karen-pal !

@thomasjpfan thomasjpfan merged commit 64f2c0d into scikit-learn:main Jun 26, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
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.

3 participants
0