Van Kerckhoven, Johan
2006-Jul-17 07:21 UTC
[R] Questions concerning function 'svm' in e1071 package (solved)
Greetings everyone, The problem has been solved. A faulty evaluation of the decision Function was the culprit. Signed, Johan Van Kerckhoven> Greetings everyone, > > I have the following problem (illustrating R-code at bottom of mail): > Given a training sample with binary outcomes (-1/+1), I train a linear > Support Vector Machine to separate them. Afterwards, I compute the > weight vector w in the usual way, and obtain the fitted values as > w'x + b > 0 ==> yfitted = 1, otherwise -1. > > However, upon verifying with the 'predict' method, the outcomes do not > match up as they should. I've already tried to find information > concerning this issue on the R-help board, but to no avail. Can any of > you point me in the right direction? > > Signed, > > Johan Van Kerckhoven > ORSTAT and University Center of Statistics > Katholieke Universiteit LeuvenDisclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm