8000 DOC Use defined notation for precision and recall (#12726) · scikit-learn/scikit-learn@1cb56ba · GitHub
[go: up one dir, main page]

Skip to content

Commit 1cb56ba

Browse files
Greg Gandenbergerqinhanmin2014
Greg Gandenberger
authored andcommitted
DOC Use defined notation for precision and recall (#12726)
1 parent f70b1ff commit 1cb56ba

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/modules/model_evaluation.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -887,11 +887,11 @@ To make this more explicit, consider the following notation:
887887
* :math:`y_l` the subset of :math:`y` with label :math:`l`
888888
* similarly, :math:`\hat{y}_s` and :math:`\hat{y}_l` are subsets of
889889
:math:`\hat{y}`
890-
* :math:`P(A, B) := \frac{\left| A \cap B \right|}{\left|A\right|}`
891-
* :math:`R(A, B) := \frac{\left| A \cap B \right|}{\left|B\right|}`
892-
(Conventions vary on handling :math:`B = \emptyset`; this implementation uses
893-
:math:`R(A, B):=0`, and similar for :math:`P`.)
894-
* :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)}`
890+
* :math:`P(y_l, \hat{y}_l) := \frac{\left| y_l \cap \hat{y}_l \right|}{\left|y_l\right|}`
891+
* :math:`R(y_l, \hat{y}_l) := \frac{\left| y_l \cap \hat{y}_l \right|}{\left|\hat{y}_l\right|}`
892+
(Conventions vary on handling :math:`\hat{y}_l = \emptyset`; this implementation uses
893+
:math:`R(y_l, \hat{y}_l):=0`, and similar for :math:`P`.)
894+
* :math:`F_\beta(y_l, \hat{y}_l) := \left(1 + \beta^2\right) \frac{P(y_l, \hat{y}_l) \times R(y_l, \hat{y}_l)}{\beta^2 P(y_l, \hat{y}_l) + R(y_l, \hat{y}_l)}`
895895

896896
Then the metrics are defined as:
897897

0 commit comments

Comments
 (0)
0