@@ -47,7 +47,7 @@ class PrecisionRecallDisplay(_BinaryClassifierCurveDisplayMixin):
47
47
.. versionadded:: 0.24
48
48
49
49
prevalence_pos_label : float, default=None
50
- The prevalence of the positive label. It is used for plotting the
50
+ The prevalence of the positive label. It is used for plotting the
51
51
prevalence baseline line (horizontal line representing the proportion
52
52
of positive samples). If None, the baseline line will not be plotted
53
53
even if `plot_chance_level` is set to True when plotting.
@@ -157,16 +157,16 @@ def plot(
157
157
`estimator_name` if not `None`, otherwise no labeling is shown.
158
158
159
159
plot_chance_level : bool, default=False
160
- Whether to plot the prevalence baseline. The baseline is the prevalence
161
- of the positive label computed from the data passed during
160
+ Whether to plot the prevalence baseline. The baseline is the prevalence
161
+ of the positive label computed from the data passed during
162
162
:meth:`from_estimator` or :meth:`from_predictions` call.
163
163
164
164
165
165
.. versionadded:: 1.3
166
166
167
167
chance_level_kw : dict, default=None
168
- Keyword arguments to be passed to matplotlib's `plot` for rendering
169
- the prevalence baseline line (horizontal line representing the
168
+ Keyword arguments to be passed to matplotlib's `plot` for rendering
169
+ the prevalence baseline line (horizontal line representing the
170
170
proportion of positive samples).
171
171
172
172
@@ -475,17 +475,17 @@ def from_predictions(
475
475
Axes object to plot on. If `None`, a new figure and axes is created.
476
476
477
477
plot_chance_level : bool, default=False
478
- Whether to plot the prevalence baseline (horizontal reference line).
479
- The baseline represents the prevalence of the positive label computed
480
- from the data passed during :meth:`from_estimator` or
478
+ Whether to plot the prevalence baseline (horizontal reference line).
479
+ The baseline represents the prevalence of the positive label computed
480
+ from the data passed during :meth:`from_estimator` or
481
481
:meth:`from_predictions` call.
482
482
483
483
484
484
.. versionadded:: 1.3
485
485
486
486
chance_level_kw : dict, default=None
487
- Keyword arguments to be passed to matplotlib's `plot` for rendering
488
- the prevalence baseline line (horizontal line representing the
487
+ Keyword arguments to be passed to matplotlib's `plot` for rendering
488
+ the prevalence baseline line (horizontal line representing the
489
489
proportion of positive samples).
490
490
491
491
0 commit comments