I am in the process of converting a binary classification problem to multi-label classification program. The code is written in python.
The below is the existing code:
positive_labels = [[0, 1] for _ in positive_examples]
negative_labels = [[1, 0] for _ in negative_examples]
Now i would like to convert this into a multi-label like 3 classes - 0,1,2
positive_labels = [[1,0,0] for _ in positive_examples]
neutral_labels = [[0,1,0] for _ in neutral_examples]
negative_labels = [[0,0,1] for _ in negative_examples]
Is this correct? If not could you please let me know how to do this?
Please help.