Skip to content

Commit

Permalink
DOC Ensures that sklearn.metrics._classification.hamming_loss passes …
Browse files Browse the repository at this point in the history
…numpydoc validation (scikit-learn#21449)
  • Loading branch information
embandera authored Oct 25, 2021
1 parent d43bd8a commit 66df3ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
1 change: 0 additions & 1 deletion maint_tools/test_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@
"sklearn.metrics._classification.confusion_matrix",
"sklearn.metrics._classification.f1_score",
"sklearn.metrics._classification.fbeta_score",
"sklearn.metrics._classification.hamming_loss",
"sklearn.metrics._classification.hinge_loss",
"sklearn.metrics._classification.jaccard_score",
"sklearn.metrics._classification.log_loss",
Expand Down
7 changes: 6 additions & 1 deletion sklearn/metrics/_classification.py
Original file line number Diff line number Diff line change
Expand Up @@ -2212,7 +2212,12 @@ def hamming_loss(y_true, y_pred, *, sample_weight=None):
See Also
--------
accuracy_score, jaccard_score, zero_one_loss
accuracy_score : Compute the accuracy score. By default, the function will
return the fraction of correct predictions divided by the total number
of predictions.
jaccard_score : Compute the Jaccard similarity coefficient score.
zero_one_loss : Compute the Zero-one classification loss. By default, the
function will return the percentage of imperfectly predicted subsets.
Notes
-----
Expand Down

0 comments on commit 66df3ac

Please sign in to comment.