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 Leuven Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
