-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
DOC Ensures that sklearn.metrics._classification.accuracy_score passes numpydoc validation #21441
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 Ensures that sklearn.metrics._classification.accuracy_score passes numpydoc validation #21441
Conversation
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.
Otherwise LGTM
sklearn/metrics/_classification.py
Outdated
hamming_loss : Compute the average Hamming loss. | ||
zero_one_loss : Zero-one classification loss. |
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.
Instead of the losses, I am thinking that it could be better to add the balanced_accuracy_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.
I think hamming_loss
and zero_one_loss
are directly related to accuracy so this is fine to put them in the See also section for accuracy score. Maybe we could be slightly more explicit on how they are related.
+1 for adding balanced_accuracy_score
.
Co-authored-by: Guillaume Lemaitre <[email protected]>
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!
Thanks @embandera |
…s numpydoc validation (scikit-learn#21441) Co-authored-by: Guillaume Lemaitre <[email protected]>
…s numpydoc validation (scikit-learn#21441) Co-authored-by: Guillaume Lemaitre <[email protected]>
…s numpydoc validation (scikit-learn#21441) Co-authored-by: Guillaume Lemaitre <[email protected]>
…s numpydoc validation (#21441) Co-authored-by: Guillaume Lemaitre <[email protected]>
Reference Issues/PRs
Addresses #21350
#DataUmbrella
What does this implement/fix? Explain your changes.
This PR ensures sklearn.metrics._classification.accuracy_score is compatible with numpydoc: