Factorize label_binarize for binarizing a sequence of labels with fixed classes