8000 DOC fix items in docstring of zero_division (#30175) · scikit-learn/scikit-learn@49c5948 · GitHub
[go: up one dir, main page]

Skip to content

Commit 49c5948

Browse files
authored
DOC fix items in docstring of zero_division (#30175)
1 parent 221b209 commit 49c5948

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

sklearn/metrics/_classification.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,6 +1510,7 @@ def fbeta_score(
15101510
predictions and labels are negative.
15111511
15121512
Notes:
1513+
15131514
- If set to "warn", this acts like 0, but a warning is also raised.
15141515
- If set to `np.nan`, such values will be excluded from the average.
15151516
@@ -1799,11 +1800,13 @@ def precision_recall_fscore_support(
17991800
18001801
zero_division : {"warn", 0.0, 1.0, np.nan}, default="warn"
18011802
Sets the value to return when there is a zero division:
1802-
- recall: when there are no positive labels
1803-
- precision: when there are no positive predictions
1804-
- f-score: both
1803+
1804+
- recall: when there are no positive labels
1805+
- precision: when there are no positive predictions
1806+
- f-score: both
18051807
18061808
Notes:
1809+
18071810
- If set to "warn", this acts like 0, but a warning is also raised.
18081811
- If set to `np.nan`, such values will be excluded from the average.
18091812
@@ -2228,6 +2231,7 @@ def precision_score(
22282231
Sets the value to return when there is a zero division.
22292232
22302233
Notes:
2234+
22312235
- If set to "warn", this acts like 0, but a warning is also raised.
22322236
- If set to `np.nan`, such values will be excluded from the average.
22332237
@@ -2407,6 +2411,7 @@ def recall_score(
24072411
Sets the value to return when there is a zero division.
24082412
24092413
Notes:
2414+
24102415
- If set to "warn", this acts like 0, but a warning is also raised.
24112416
- If set to `np.nan`, such values will be excluded from the average.
24122417

0 commit comments

Comments
 (0)
0