Skip to content
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

Merged

Conversation

embandera
Copy link
Contributor

Reference Issues/PRs

Addresses #21350
#DataUmbrella

This PR ensures balanced_accuracy_score is compatible with numpydoc:

  • Remove sklearn.metrics._classification.balanced_accuracy_score from DOCSTRING_IGNORE_LIST.
  • Verify that all tests are passing.

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.
Copy link
Member

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).

@glemaitre
Copy link
Member

Apart of this last comment, I am happy with the PR.

@reshamas reshamas added the Sprint label Nov 5, 2021
Copy link
Member

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

@jjerphan jjerphan merged commit bcdbf7d into scikit-learn:main Nov 7, 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.

7 participants