Skip to content

Commit

Permalink
Revert "DOC n_classes -> #classes (#11702)"
Browse files Browse the repository at this point in the history
This reverts commit 89b25a5.
  • Loading branch information
qinhanmin2014 committed Jul 29, 2018
1 parent 89b25a5 commit 9c306c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/modules/model_evaluation.rst
Expand Up @@ -440,10 +440,10 @@ the total number of predictions).

In contrast, if the conventional accuracy is above chance only because the
classifier takes advantage of an imbalanced test set, then the balanced
accuracy, as appropriate, will drop to :math:`\frac{1}{\text{#classes}}`.
accuracy, as appropriate, will drop to :math:`\frac{1}{\text{n\_classes}}`.

The score ranges from 0 to 1, or when ``adjusted=True`` is used, it rescaled to
the range :math:`\frac{1}{1 - \text{#classes}}` to 1, inclusive, with
the range :math:`\frac{1}{1 - \text{n\_classes}}` to 1, inclusive, with
performance at random scoring 0.

If :math:`y_i` is the true value of the :math:`i`-th sample, and :math:`w_i`
Expand All @@ -463,7 +463,7 @@ defined as:
With ``adjusted=True``, balanced accuracy reports the relative increase from
:math:`\texttt{balanced-accuracy}(y, \mathbf{0}, w) =
\frac{1}{\text{#classes}}`. In the binary case, this is also known as
\frac{1}{\text{n\_classes}}`. In the binary case, this is also known as
`*Youden's J statistic* <https://en.wikipedia.org/wiki/Youden%27s_J_statistic>`_,
or *informedness*.

Expand Down

0 comments on commit 9c306c0

Please sign in to comment.