@@ -59,15 +59,14 @@ class RocCurveDisplay(_BinaryClassifierCurveDisplayMixin):
59
59
Now accepts a list for plotting multiple curves.
60
60
61
61
name : str or list of str, default=None
62
- Name for labeling legend entries. The number of legend entries
63
- is determined by the `curve_kwargs` passed to `plot`.
62
+ Name for labeling legend entries. The number of legend entries is determined
63
+ by the `curve_kwargs` passed to `plot`, and is not affected by `name `.
64
64
To label each curve, provide a list of strings. To avoid labeling
65
65
individual curves that have the same appearance, this cannot be used in
66
66
conjunction with `curve_kwargs` being a dictionary or None. If a
67
67
string is provided, it will be used to either label the single legend entry
68
68
or if there are multiple legend entries, label each individual curve with
69
- the same name. If `None`, set to `name` provided at `RocCurveDisplay`
70
- initialization. If still `None`, no name is shown in the legend.
69
+ the same name. If still `None`, no name is shown in the legend.
71
70
72
71
.. versionadded:: 1.7
73
72
@@ -185,7 +184,7 @@ def plot(
185
184
186
185
name : str or list of str, default=None
187
186
Name for labeling legend entries. The number of legend entries
188
- is determined by `curve_kwargs`.
187
+ is determined by `curve_kwargs`, and is not affected by `name` .
189
188
To label each curve, provide a list of strings. To avoid labeling
190
189
individual curves that have the same appearance, this cannot be used in
191
190
conjunction with `curve_kwargs` being a dictionary or None. If a
@@ -441,9 +440,9 @@ def from_estimator(
441
440
y_score = y_score ,
442
441
sample_weight = sample_weight ,
443
442
drop_intermediate = drop_intermediate ,
443
+ pos_label = pos_label ,
444
444
name = name ,
445
445
ax = ax ,
446
- pos_label = pos_label ,
447
446
curve_kwargs = curve_kwargs ,
448
447
plot_chance_level = plot_chance_level ,
449
448
chance_level_kw = chance_level_kw ,
@@ -687,7 +686,7 @@ def from_cv_results(
687
686
688
687
name : str or list of str, default=None
689
688
Name for labeling legend entries. The number of legend entries
690
- is determined by `curve_kwargs`.
689
+ is determined by `curve_kwargs`, and is not affected by `name` .
691
690
To label each curve, provide a list of strings. To avoid labeling
692
691
individual curves that have the same appearance, this cannot be used in
693
692
conjunction with `curve_kwargs` being a dictionary or None. If a
@@ -783,8 +782,8 @@ def from_cv_results(
783
782
viz = cls (
784
783
fpr = fpr_folds ,
785
784
tpr = tpr_folds ,
786
- name = name ,
787
785
roc_auc = auc_folds ,
786
+ name = name ,
788
787
pos_label = pos_label_ ,
789
788
)
790
789
return viz .plot (
0 commit comments