@@ -440,10 +440,10 @@ the total number of predictions).
440
440
441
441
In contrast, if the conventional accuracy is above chance only because the
442
442
classifier takes advantage of an imbalanced test set, then the balanced
443
- accuracy, as appropriate, will drop to :math: `\frac {1 }{\text {n\_classes }}`.
443
+ accuracy, as appropriate, will drop to :math: `\frac {1 }{\text {#classes }}`.
444
444
445
445
The score ranges from 0 to 1, or when ``adjusted=True `` is used, it rescaled to
446
- the range :math: `\frac {1 }{1 - \text {n\_classes }}` to 1, inclusive, with
446
+ the range :math: `\frac {1 }{1 - \text {#classes }}` to 1, inclusive, with
447
447
performance at random scoring 0.
448
448
449
449
If :math: `y_i` is the true value of the :math: `i`-th sample, and :math: `w_i`
@@ -463,7 +463,7 @@ defined as:
463
463
464
464
With ``adjusted=True ``, balanced accuracy reports the relative increase from
465
465
:math: `\texttt {balanced-accuracy}(y, \mathbf {0 }, w) =
466
- \frac {1 }{\text {n\_classes }}`. In the binary case, this is also known as
466
+ \frac {1 }{\text {#classes }}`. In the binary case, this is also known as
467
467
`*Youden's J statistic* <https://en.wikipedia.org/wiki/Youden%27s_J_statistic >`_,
468
468
or *informedness *.
469
469
0 commit comments