Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 01775ec

Browse files
authored
DOC Ensures that mean_pinball_loss passes numpydoc validation (#24336)
1 parent 4e1efaa commit 01775ec

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

sklearn/metrics/_regression.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ def mean_pinball_loss(
226226
sample_weight : array-like of shape (n_samples,), default=None
227227
Sample weights.
228228
229-
alpha: float, slope of the pinball loss, default=0.5,
230-
this loss is equivalent to :ref:`mean_absolute_error` when `alpha=0.5`,
229+
alpha : float, slope of the pinball loss, default=0.5,
230+
This loss is equivalent to :ref:`mean_absolute_error` when `alpha=0.5`,
231231
`alpha=0.95` is minimized by estimators of the 95th percentile.
232232
233233
multioutput : {'raw_values', 'uniform_average'} or array-like of shape \

sklearn/tests/test_docstrings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"sklearn.metrics._plot.precision_recall_curve.plot_precision_recall_curve",
2020
"sklearn.metrics._ranking.dcg_score",
2121
"sklearn.metrics._ranking.roc_curve",
22-
"sklearn.metrics._regression.mean_pinball_loss",
2322
"sklearn.metrics.cluster._bicluster.consensus_score",
2423
"sklearn.metrics.cluster._supervised.adjusted_mutual_info_score",
2524
"sklearn.metrics.cluster._supervised.adjusted_rand_score",

0 commit comments

Comments
 (0)