Scenario 4 - dealing with more than two classes

SVM and many other classifiers can be generalized to the multiple class case by two common approaches, one-vs-rest (also called one-vs-all) and one-vs-one.

In the one-vs-rest setting, for a K-class problem, it constructs K different binary SVM classifiers. For the classifier, it treats the class as the positive case and the rest classes as the negative case as a whole; the hyperplane denoted as ...

Get Python Machine Learning By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.