Reputation: 665
I am using R for classification problem. Does svm function in R support only binary classfication or supports multi class classification as welll?
Upvotes: 2
Views: 1403
Reputation: 557
The e1071 R package supports multi class classification using a "one-against-one-method".
Here are the classifications in this package:
v-classication: this model allows for more control over the number of support vectors (see Scholkopf et al., 2000) by specifying an additional parameter which approximates the fraction of support vectors;
One-class-classication: this model tries to find the support of a distribution and thus allows for outlier/novelty detection;
Multi-class classication: basically, SVMs can only solve binary classication problems. To allow for multi-class classication, libsvm uses the one-against-one technique by fitting all binary subclassiers and finding the correct class by a voting mechanism;
Check https://cran.r-project.org/web/packages/e1071/vignettes/svmdoc.pdf
Upvotes: 0
Reputation: 30485
svm (in package e1071) supports multi class classification using the ‘one-against-one’-approach. Same with ksvm (in kernlab).
Upvotes: 3