diff --git a/sklearn/metrics/_classification.py b/sklearn/metrics/_classification.py index 7f0a0a8ce1bad..10c9e864e793f 100644 --- a/sklearn/metrics/_classification.py +++ b/sklearn/metrics/_classification.py @@ -738,12 +738,16 @@ def jaccard_score( Returns ------- - score : float (if average is not None) or array of floats, shape =\ - [n_unique_labels] + score : float or ndarray of shape (n_unique_labels,), dtype=np.float64 + The Jaccard score. When `average` is not `None`, a single scalar is + returned. See Also -------- - accuracy_score, f1_score, multilabel_confusion_matrix + accuracy_score : Function for calculating the accuracy score. + f1_score : Function for calculating the F1 score. + multilabel_confusion_matrix : Function for computing a confusion matrix\ + for each class or sample. Notes ----- diff --git a/sklearn/tests/test_docstrings.py b/sklearn/tests/test_docstrings.py index 6d646dbd2a565..9c9885e4b3c59 100644 --- a/sklearn/tests/test_docstrings.py +++ b/sklearn/tests/test_docstrings.py @@ -30,7 +30,6 @@ "sklearn.linear_model._omp.orthogonal_mp_gram", "sklearn.manifold._locally_linear.locally_linear_embedding", "sklearn.manifold._t_sne.trustworthiness", - "sklearn.metrics._classification.jaccard_score", "sklearn.metrics._plot.det_curve.plot_det_curve", "sklearn.metrics._plot.precision_recall_curve.plot_precision_recall_curve", "sklearn.metrics._ranking.coverage_error",