[R] Questions concerning function 'svm' in e1071 package (solved)

Van Kerckhoven, Johan Johan.VanKerckhoven at econ.kuleuven.be
Mon Jul 17 09:21:41 CEST 2006


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



More information about the R-help mailing list