8.9. Transforming the prediction target (y)
These are transformers that are not intended to be used on features, only on supervised learning targets. See also Transforming target in regression if you want to transform the prediction target for learning, but evaluate the model in the original (untransformed) space.
8.9.1. Label binarization
8.9.1.1. LabelBinarizer
LabelBinarizer is a utility class to help create a label
indicator matrix from a list of multiclass labels: