Skip to content

Commit 2f5a236

Browse files
MAINT coverage_error passes numpydoc validation (scikit-learn#24322)
1 parent 9b25024 commit 2f5a236

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

sklearn/metrics/_ranking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1147,13 +1147,13 @@ def coverage_error(y_true, y_score, *, sample_weight=None):
11471147
Returns
11481148
-------
11491149
coverage_error : float
1150+
The coverage error.
11501151
11511152
References
11521153
----------
11531154
.. [1] Tsoumakas, G., Katakis, I., & Vlahavas, I. (2010).
11541155
Mining multi-label data. In Data mining and knowledge discovery
11551156
handbook (pp. 667-685). Springer US.
1156-
11571157
"""
11581158
y_true = check_array(y_true, ensure_2d=True)
11591159
y_score = check_array(y_score, ensure_2d=True)

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"sklearn.manifold._t_sne.trustworthiness",
2121
"sklearn.metrics._plot.det_curve.plot_det_curve",
2222
"sklearn.metrics._plot.precision_recall_curve.plot_precision_recall_curve",
23-
"sklearn.metrics._ranking.coverage_error",
2423
"sklearn.metrics._ranking.dcg_score",
2524
"sklearn.metrics._ranking.roc_curve",
2625
"sklearn.metrics._regression.mean_pinball_loss",

0 commit comments

Comments
 (0)