Scikit Learning Multiclass Classification for Vector Support Machines

I want to know if LinearSVC supports LinearSVC classification by default, or should we wrap it in OneVsRestClassifier , for example:

  OneVsRestClassifier(LinearSVC()) 
+1
source share
1 answer

According to this part of the documentation :

SVC, NuSVC, and LinearSVC are classes that can classify multiple classes in a dataset.

[...]

On the other hand, LinearSVC implements a multi-class one-vs-the-rest strategy, thus training n_class models. If there are only two classes, only one model is trained:

Therefore, it by default supports multiclass classification.

+3
source

All Articles