I am working on a multilabel classification task of text. I have 8 classes and I encoded target as binary strings using MultiLabelBinarizer(). So for categories A,B, the sam