8000 DOC n_classes -> #classes (#11702) · scikit-learn/scikit-learn@89b25a5 · GitHub
[go: up one dir, main page]

Skip to content

Commit 89b25a5

Browse files
authored
DOC n_classes -> #classes (#11702)
1 parent a156524 commit 89b25a5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/modules/model_evaluation.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,10 +440,10 @@ the total number of predictions).
440440

441441
In contrast, if the conventional accuracy is above chance only because the
442442
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}}`.
444444

445445
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
447447
performance at random scoring 0.
448448

449449
If :math:`y_i` is the true value of the :math:`i`-th sample, and :math:`w_i`
@@ -463,7 +463,7 @@ defined as:
463463
464464
With ``adjusted=True``, balanced accuracy reports the relative increase from
465465
: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
467467
`*Youden's J statistic* <https://en.wikipedia.org/wiki/Youden%27s_J_statistic>`_,
468468
or *informedness*.
469469

0 commit comments

Comments
 (0)
0