@@ -14,7 +14,7 @@ Multiclass and multilabel algorithms
14
14
15
15
The :mod: `sklearn.multiclass ` module implements *meta-estimators * to solve
16
16
``multiclass `` and ``multilabel `` classification problems
17
- by decomposing such problems into binary classification problems. Multioutput
17
+ by decomposing such problems into binary classification problems. `` multioutput ``
18
18
regression is also supported.
19
19
20
20
- **Multiclass classification ** means a classification task with more than
@@ -23,24 +23,39 @@ regression is also supported.
23
23
sample is assigned to one and only one label: a fruit can be either an
24
24
apple or a pear but not both at the same time.
25
25
26
+ - accepted :func: `sklearn.utils.multiclass.type_of_target ` (y):
27
+ 'multiclass': `y ` contains more than two discrete values, is not a
28
+ sequence of sequences, and is 1d or a column vector.
29
+
26
30
- **Multilabel classification ** assigns to each sample a set of target
27
31
labels. This can be thought as predicting properties of a data-point
28
32
that are not mutually exclusive, such as topics that are relevant for a
29
33
document. A text might be about any of religion, politics, finance or
30
34
education at the same time or none of these.
31
35
36
+ - accepted :func: `sklearn.utils.multiclass.type_of_target ` (y):
37
+ 'multilabel-indicator': `y ` is a label indicator matrix, an array
38
+ of two dimensions with at least two columns, and at most 2 unique
39
+ values.
40
+
32
41
- **Multioutput regression ** assigns each sample a set of target
33
42
values. This can be thought of as predicting several properties
34
43
for each data-point, such as wind direction and magnitude at a
35
44
certain location.
36
45
46
+ - accepted :func: `sklearn.utils.multiclass.type_of_target ` (y):
47
+ 'continuous-multioutput': `y ` is a 2d array of floats that are
48
+ not all integers, and both dimensions are of size > 1.
49
+
37
50
- **Multioutput-multiclass classification **
38
51
(also known as **multi-task classification **)
39
52
means that a single estimator has to handle several joint classification
40
53
tasks. This is both a generalization of the multi-label classification
41
54
task, which only considers binary classification, as well as a
42
- generalization of the multi-class classification task. *The output format
43
- is a 2d numpy array or sparse matrix. *
55
+ generalization of the multi-class classification task.
56
+
57
+ - accepted :func: `sklearn.utils.multiclass.type_of_target ` (y):
58
+ *The output format is a 2d numpy array or sparse matrix. *
44
59
45
60
The set of labels can be different for each output variable.
46
61
For instance, a sample could be assigned "pear" for an output variable that
0 commit comments