06 MultiClass Classification
06 MultiClass Classification
com/one-vs-rest-and-one-vs-one-for-multi-class-
classification/#:~:text=look%20at%20each.-,One%2DVs%2DRest%20for%20Multi%2DClass
%20Classification,into%20multiple%20binary%20classification%20problems.
1.
2. What is Multi-class Classification?
3. https://towardsdatascience.com/multi-
class-classification-one-vs-all-one-vs-
one-94daed32a87b
Multi-class Classification
Consider the primary dataset, in the first row; we have x1, x2,
x3 feature values, and the corresponding class value is G, which
means these feature values belong to G class. So we put +1
value in the class column for the correspondence of green type.
Then we applied the same for the x10, x11, x12 input train data.
For the rest of the values of the features which are not in
correspondence with the Green class, we put -1 in their class
column.
I hope that you understood the creation of training datasets.
After the training model, when we pass input test data to the
model, then that data is considered as input for all generated
classifiers. If there is any possibility that our input test data
belongs to a particular class, then the classifier created for that
class gives a positive response in the form of +1, and all other
classifier models provide an adverse reaction in the way of -1.
Similarly, binary classifier models predict the probability of
correspondence with concerning classes.
Each binary classifier predicts one class label. When we input the
test data to the classifier, then the model with the majority counts
is concluded as a result.
5. Conclusion
As you got the idea behind working of One vs. All multi-
class classification, it is challenging to deal with large datasets
having many numbers of class instances.