[R] multiclass SVM (e1071 package): number of estimated models

john.gelburg john.gelburg at GMAIL.COM
Sat Sep 26 12:22:54 CEST 2009


Hi,

I run multiclass SVM for iris data, which contains 3 classes (manual page
52). Based on manual, the implementation uses one-against-one approach:
k*(k-1)/2 binary classifiers trained. However, I am getting only two models
instead of three (only two columns of support vectors and coefficients).
What do I miss?

Thanks a lot for help,
John

Bellow is the code.

package(e1071)
data(iris)
x <- subset(iris, select = -Species)
y <- Species
model <- svm(x, y)
model$SV
model$coefs
-- 
View this message in context: http://www.nabble.com/multiclass-SVM-%28e1071-package%29%3A-number-of-estimated-models-tp25624020p25624020.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list