[R] decision values and probability in SVM

From: Das, Rajdeep <das_at_cshl.edu>
Date: Thu 17 Mar 2005 - 10:55:34 EST


Hi,  

I am using SVM from e1071 package. I can get decision values very easily. But whenever, I try to get the probability measure, it returns NULL. I use the following codes to generate decision.values and probability. Is there anything wrong in it?    

predictor<-svm(train[,c(x1, x2, x3)], train[,x4], probability=TRUE)  

pred<-predict(predictor, test[,c(x1, x2, x3)], probability=TRUE, decision.values=TRUE)  

attr(pred, "decision.values")[1,]  

attr(pred, "probabilities")[1,]    

Thanks for your help.  

Raj



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 Thu Mar 17 11:02:50 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:30:50 EST