Skip to content

Commit 7007077

Browse files
committed
fix docstring
1 parent fdb5797 commit 7007077

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

skore/src/skore/_sklearn/_estimator/metrics_accessor.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2093,8 +2093,7 @@ def confusion_matrix(
20932093
pos_label : int, float, bool, str or None, default=_DEFAULT
20942094
The label to consider as the positive class when computing the metric. Use
20952095
this parameter to override the positive class. By default, the positive
2096-
class is set to the one provided when creating the report. If `None`,
2097-
the metric is computed considering each class as a positive class.
2096+
class is set to the one provided when creating the report.
20982097
20992098
Returns
21002099
-------

skore/src/skore/_sklearn/_plot/metrics/confusion_matrix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,8 +224,8 @@ def _compute_data_for_display(
224224
Display labels for plot.
225225
226226
pos_label : int, float, bool, str or None
227-
The class considered as the positive class when computing the
228-
precision and recall metrics.
227+
The class considered as the positive class when displaying the confusion
228+
matrix.
229229
230230
threshold : bool, default=False
231231
Whether to compute the confusion matrix at different thresholds.

0 commit comments

Comments
 (0)