8000 DOC Expand multilabel in decision function in glossary (#24095) · rusdes/scikit-learn@c8bef4b · GitHub
[go: up one dir, main page]

Skip to content

Commit c8bef4b

Browse files
authored
DOC Expand multilabel in decision function in glossary (scikit-learn#24095)
1 parent 68c5ceb commit c8bef4b

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

doc/glossary.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1177,18 +1177,19 @@ Methods
11771177
predicted class. Columns are ordered according to
11781178
:term:`classes_`.
11791179
multilabel classification
1180-
Scikit-learn is inconsistent in its representation of multilabel
1181-
decision functions. Some estimators represent it like multiclass
1182-
multioutput, i.e. a list of 2d arrays, each with two columns. Others
1183-
represent it with a single 2d array, whose columns correspond to
1184-
the individual binary classification decisions. The latter
1185-
representation is ambiguously identical to the multiclass
1186-
classification format, though its semantics differ: it should be
1187-
interpreted, like in the binary case, by thresholding at 0.
1188-
1189-
TODO: `This gist
1190-
<https://gist.github.com/jnothman/4807b1b0266613c20ba4d1f88d0f8cf5>`_
1191-
highlights the use of the different formats for multilabel.
1180+
Scikit-learn is inconsistent in its representation of :term:`multilabel`
1181+
decision functions. It may be represented one of two ways:
1182+
1183+
- List of 2d arrays, each array of shape: (`n_samples`, 2), like in
1184+
multiclass multioutput. List is of length `n_labels`.
1185+
1186+
- Single 2d array of shape (`n_samples`, `n_labels`), with each
1187+
'column' in the array corresponding to the individual binary
1188+
classification decisions. This is identical to the
1189+
multiclass classification format, though its semantics differ: it
1190+
should be interpreted, like in the binary case, by thresholding at
1191+
0.
1192+
11921193
multioutput classification
11931194
A list of 2d arrays, corresponding to each multiclass decision
11941195
function.

0 commit comments

Comments
 (0)
0