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

From: Van Kerckhoven, Johan <>
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.


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: mailing list PLEASE do read the posting guide! 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 Please read the posting guide before posting to the list.