-
-
Notifications
You must be signed in to change notification settings - Fork 25.5k
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 balanced_accuracy_score passes numpydoc validation #21478
DOC Ensures that balanced_accuracy_score passes numpydoc validation #21478
Conversation
…lanced_accuracy under the Returns section
sklearn/metrics/_classification.py
Outdated
average_precision_score : Compute average precision (AP) from prediction | ||
scores. | ||
recall_score : Compute the ratio ``tp / (tp + fn)``, where ``tp`` is | ||
the number of true positives and ``fn`` the number of false negatives. |
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.
If we mention recall_score
, we should also mentionprecision_score
(in addition toaverage_precision_score
).
Apart of this last comment, I am happy with the PR. |
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. Thank you, @embandera.
Reference Issues/PRs
Addresses #21350
#DataUmbrella
This PR ensures balanced_accuracy_score is compatible with numpydoc: