Re: [R] Unusual behavior in e1071?

2017-05-02 Thread Uwe Ligges
Look more carefully at y. If this is a factor, please note what is the first (reference) level and what the second. This determines the rule, not the value of the first observation. Best, Uwe Ligges On 02.05.2017 07:25, Daniel Jeske wrote: Hello - I have noticed that when I run svm() the

[R] Unusual behavior in e1071?

2017-05-02 Thread Daniel Jeske
Hello - I have noticed that when I run svm() the order of my data matters. If the first case in the data frame has y=+1 I get the expected decision rule that says to classify as +1 if f(x)>0. However, if the first case in the data frame has y=-1 then apparently the decision rule being used says