-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
DOC Specify the meaning of scoring=None in sklearn.metrics.check_scoring #20367
Conversation
sklearn/metrics/_scorer.py
Outdated
@@ -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. |
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.
It should probably be score
method, with ticks, to be really explicit?
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.
that makes sense! I'll change it
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.
just done it @amueller . thanks for the feedback!
sklearn/metrics/_scorer.py
Outdated
@@ -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. |
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.
Sorry for being unclear, I think it should be backticks, which will make it be rendered as code. `score`
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.
no problem, i fixed it!
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, looks good!
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.
Thank you for the PR @karen-pal !
Reference Issues/PRs
Partially addresses #17295.
What does this implement/fix? Explain your changes.
This PR specifies the meaning of
scoring=None
for the functioncheck_scoring
in thesklearn.metrics._scorer
module.#DataUmbrella sprint