8000 DOC Fixes confusing notation for y and y_pred (#23193) · scikit-learn/scikit-learn@3082d95 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3082d95

Browse files
authored
DOC Fixes confusing notation for y and y_pred (#23193)
1 parent 24f3006 commit 3082d95

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/modules/model_evaluation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -930,18 +930,18 @@ produce an F-score that is not between precision and recall.
930930

931931
To make this more explicit, consider the following notation:
932932

933-
* :math:`y` the set of *predicted* :math:`(sample, label)` pairs
934-
* :math:`\hat{y}` the set of *true* :math:`(sample, label)` pairs
933+
* :math:`y` the set of *true* :math:`(sample, label)` pairs
934+
* :math:`\hat{y}` the set of *predicted* :math:`(sample, label)` pairs
935935
* :math:`L` the set of labels
936936
* :math:`S` the set of samples
937937
* :math:`y_s` the subset of :math:`y` with sample :math:`s`,
938938
i.e. :math:`y_s := \left\{(s', l) \in y | s' = s\right\}`
939939
* :math:`y_l` the subset of :math:`y` with label :math:`l`
940940
* similarly, :math:`\hat{y}_s` and :math:`\hat{y}_l` are subsets of
941941
:math:`\hat{y}`
942-
* :math:`P(A, B) := \frac{\left| A \cap B \right|}{\left|A\right|}` for some
942+
* :math:`P(A, B) := \frac{\left| A \cap B \right|}{\left|\right|}` for some
943943
sets :math:`A` and :math:`B`
944-
* :math:`R(A, B) := \frac{\left| A \cap B \right|}{\left|B\right|}`
944+
* :math:`R(A, B) := \frac{\left| A \cap B \right|}{\left|A\right|}`
945945
(Conventions vary on handling :math:`B = \emptyset`; this implementation uses
946946
:math:`R(A, B):=0`, and similar for :math:`P`.)
947947
* :math:`F_\beta(A, B) := \left(1 + \beta^2\right) \frac{P(A, B) \times R(A, B)}{\beta^2 P(A, B) + R(A, B)}`

0 commit comments

Comments
 (0)
0