I am reading the documentation of Scikit-learn's OneVsRestClassifier()
, link. It looks to me that, the OneVsRestClassifier first binarizes the multiple classes into binary classes, then train the model, and repeat for each of the classes. Then at the end, it "averages" the scores into a final ML model that can predict multiple classes.
For my example, I have multiclass labels label1, label2, label3
, but instead of summarizing at the end, is it possible to use OneVsRestClassifier()
to give me binary classifications, iteratively.
I like to get 3 trained ML models. First is for label1
vs the rest (label2 and label3
), second is for label2
vs the rest (label1 and label3
), and third is for label3
vs the rest (label1 and label2
).
I understand I can manually binarize/dichotomize the outcome label, and run the binary ML algorithm three times. But I wonder if the OneVsRestClassifier()
has a better and more efficient capability to replace this manual work.