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

______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to