[R] e1071: Cannot predict probabilities

Mikkel Meyer Andersen r at mikl.dk
Tue Feb 23 20:43:21 CET 2010


Dear list.

I using the SVM-methods from the e1071, but I can't get the
probabilities when predicting.

Code:
x <- matrix(rbinom(100, 10, 0.3), ncol=2)
y <- apply(x, 1, sum)
fit <- svm(y ~ x, method = "C-classification", kernel = "radial",
probability = TRUE)
predict(fit, x, probability=TRUE)

Here predict doesn't containing any probabilities (not as attributes
either). Does anybody know what I'm doing wrong or if the package
contains any bugs?

version.string R version 2.9.2 (2009-08-24)
Version of the e1071-package: 1.5-21

Cheers, Mikkel.



More information about the R-help mailing list