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

From: Van Kerckhoven, Johan <Johan.VanKerckhoven_at_econ.kuleuven.be>
Date: Mon 17 Jul 2006 - 17:21:41 EST


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



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Mon Jul 17 17:26:55 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 17 Jul 2006 - 18:15:59 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.