@@ -1177,18 +1177,19 @@ Methods
1177
1177
predicted class. Columns are ordered according to
1178
1178
:term: `classes_ `.
1179
1179
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
+
1192
1193
multioutput classification
1193
1194
A list of 2d arrays, corresponding to each multiclass decision
1194
1195
function.
0 commit comments