Skip to content

Commit 8868ec7

Browse files
authored
DOC Add formula for binary balanced accuracy in UG (scikit-learn#16604)
1 parent 94f877b commit 8868ec7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

doc/modules/model_evaluation.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,11 @@ In the binary case, balanced accuracy is equal to the arithmetic mean of
459459
(true positive rate) and `specificity
460460
<https://en.wikipedia.org/wiki/Sensitivity_and_specificity>`_ (true negative
461461
rate), or the area under the ROC curve with binary predictions rather than
462-
scores.
462+
scores:
463+
464+
.. math::
465+
466+
\texttt{balanced-accuracy} = \frac{1}{2}\left( \frac{TP}{TP + FN} + \frac{TN}{TN + FP}\right )
463467
464468
If the classifier performs equally well on either class, this term reduces to
465469
the conventional accuracy (i.e., the number of correct predictions divided by

0 commit comments

Comments
 (0)