Displaying 1 result from an estimated 1 matches for "ksvm_model1".
2007 Oct 30
0
kernlab/ ksvm: class.weights & prob.model in binary classification
Hello list,
I am faced with a two-class classification problem with highly asymetric
class sizes (class one: 99%, class two: 1%).
I'd like to obtain a class probability model, also introducing available
information on the class prior.
Calling kernlab/ksvm with the line
>
ksvm_model1<-ksvm(as.matrix(slides), as.factor(Class), class.weights= c("0"
=99, "1" =1), prob.model=T)
>
or
>
ksvm_model1<-ksvm(as.matrix(slides), as.factor(Class), class.weights=wts,
prob.model=T)
>
with the named vector wts
0 1
99 1
I get the following output:
>...