8000 MNT Adds space to error message in plot_roc_curve (#14597) · scikit-learn/scikit-learn@ede933d · GitHub
[go: up one dir, main page]

Skip to content

Commit ede933d

Browse files
thomasjpfanqinhanmin2014
authored andcommitted
MNT Adds space to error message in plot_roc_curve (#14597)
1 parent db79e2d commit ede933d

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

doc/whats_new/v0.22.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,10 @@ Changelog
200200
:mod:`sklearn.metrics`
201201
......................
202202

203+
- |MajorFeature| :func:`metrics.plot_roc_curve` has been added to plot roc
204+
curves. This function introduces the visualization API described in
205+
the :ref:`User Guide <visualizations>`. :pr:`14357` by `Thomas Fan`_.
206+
203207
- |Feature| Added multiclass support to :func:`metrics.roc_auc_score`.
204208
:issue:`12789` by :user:`Kathy Chen <kathyxchen>`,
205209
:user:`Mohamed Maskani <maskani-moh>`, and :user:`Thomas Fan <thomasjpfan>`.

sklearn/metrics/_plot/roc_curve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def plot_roc_curve(estimator, X, y, pos_label=None, sample_weight=None,
146146

147147
if y_pred.ndim != 1:
148148
if y_pred.shape[1] > 2:
149-
raise ValueError("Estimator should solve a"
149+
raise ValueError("Estimator should solve a "
150150
"binary classification problem")
151151
y_pred = y_pred[:, 1]
152152
fpr, tpr, _ = roc_curve(y, y_pred, pos_label=pos_label,

0 commit comments

Comments
 (0)
0