Skip to content
Prev 256590 / 398506 Next

In svm(), how to connect quantitative prediction result to categorical result?

I trained a linear svm and did classification. looking at the model I
have, with a binary response 0/1, the decision values look like this:
head(svm.model$decision.values)
2.5
3.1
-1.0

looking at the fitted values
head(svm.model$fitted)
1
1
0
So it looks like anything less than or equal 0 is mapped to the
negative class, i.e. 0), otherwise it is mapped to the positive class,
i.e. 1.
On Fri, Apr 8, 2011 at 8:35 PM, Li, Yunfei <yunfei_li at wsu.edu> wrote: