> x <- train[,c( 2:18, 20:21, 24, 27:31)]
> y <- train$out
>
> svm.pr <- svm(x, y, probability = TRUE, method="C-classification",
kernel="radial", cost=bestc, gamma=bestg, cross=10)
>
> pred <- predict(svm.pr, valid[,c( 2:18, 20:21, 24, 27:31)],
decision.values = TRUE, probability = TRUE)
>      attr(pred, "decision.values")[1:4,]
        16         23         43         52
1.08157648 0.51241842 0.06234319 1.20656580
>      attr(pred, "probabilities")[1:4,]
NULL


HI, Dear David and R community,

I am trying to print out the probabilities and set a threshold for make ROC
curve.  I dont know  why  it showed NULL for the probabilities.

y<-train$out, is consisting of 0 and 1 binary values.

Can you help me with this?

Thanks so much!



-- 
Sincerely,
Changbin
--

	[[alternative HTML version deleted]]

