8000 wip · scikit-learn/scikit-learn@b2d9563 · GitHub
[go: up one dir, main page]

Skip to content

Commit b2d9563

Browse files
author
Joan Massich
committed
wip
1 parent dee6a93 commit b2d9563

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

doc/modules/multiclass.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Multiclass and multilabel algorithms
1414

1515
The :mod:`sklearn.multiclass` module implements *meta-estimators* to solve
1616
``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``
1818
regression is also supported.
1919

2020
- **Multiclass classification** means a classification task with more than
@@ -23,24 +23,39 @@ regression is also supported.
2323
sample is assigned to one and only one label: a fruit can be either an
2424
apple or a pear but not both at the same time.
2525

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+
2630
- **Multilabel classification** assigns to each sample a set of target
2731
labels. This can be thought as predicting properties of a data-point
2832
that are not mutually exclusive, such as topics that are relevant for a
2933
document. A text might be about any of religion, politics, finance or
3034
education at the same time or none of these.
3135

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+
3241
- **Multioutput regression** assigns each sample a set of target
3342
values. This can be thought of as predicting several properties
3443
for each data-point, such as wind direction and magnitude at a
3544
certain location.
3645

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+
3750
- **Multioutput-multiclass classification**
3851
(also known as **multi-task classification**)
3952
means that a single estimator has to handle several joint classification
4053
tasks. This is both a generalization of the multi-label classification
4154
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.*
4459

4560
The set of labels can be different for each output variable.
4661
For instance, a sample could be assigned "pear" for an output variable that

0 commit comments

Comments
 (0)
0