Skip to content
Prev 132978 / 398502 Next

SVM error

Are we talking about package "e1071"?
pedrosmarques at portugalmail.pt wrote:
We cannot reproduce: We do not have "b.txt". See the posting guide.
Why do you specify nrows, ncol and type=numeric?
Well, as.vector() strips attributes, particularly it removes the 
"factor" attributes!
type=C and kernel=RBF cannot make sense, I guess you mean

     model <- svm(x=dados[,-1], y=dados[,1], scale=TRUE,
                  type="C", kernel="RBF")
Same as before.

Please do read "An Introduction to R" - particularly on how to specify 
arguments in function calls before proceeding.

Uwe Ligges