Multilabel classification using a classifier chain
This example shows how to use ClassifierChain to solve
a multilabel classification problem.
The most naive strategy to solve such a task is to independently train a binary classifier on each label (i.e. each column of the target variable). At prediction time, the ensemble of binary classifiers is used to assemble multitask prediction.
This strategy does not allow to model relationship between different tasks. The
ClassifierChain is the meta-estimator (i.e. an estimator
taking an inner estimator) that implements a more advanced strategy. The ensemble
of binary classifiers are used as a chain where the prediction of a classifier in the
chain is used as a feature for training the next classifier on a new label. Therefore,
these additional features allow each chain to exploit correlations among labels.
The Jaccard similarity score for chain tends to be greater than that of the set independent base models.
