Skip to content

DOC Ensures that balanced_accuracy_score passes numpydoc validation#21478

Merged
jjerphan merged 5 commits intoscikit-learn:mainfrom
embandera:np_v_has_fit_balanced_accuracy_score
Nov 7, 2021
Merged

DOC Ensures that balanced_accuracy_score passes numpydoc validation#21478
jjerphan merged 5 commits intoscikit-learn:mainfrom
embandera:np_v_has_fit_balanced_accuracy_score

Conversation

@embandera
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

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

@reshamas reshamas added the Sprint label Nov 5, 2021
Copy link
Copy Markdown
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