Transform multi-label format into a binary matrix for multi-label classification.