questions regarding the svmpath package (functions svmpath and predict)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

questions regarding the svmpath package (functions svmpath and predict)

Francois BERENGER
Hello,

I have two questions.

The svmpath package provides a svmpath function:
---
fit <- svmpath(xtrain, ytrain, kernel.function = radial.kernel, param.kernel = 0.8)
---
1) How to get the optimal lambda value out of this result?

The svmpath package also provides a predict function:
---
ytest <- predict(fit, xtest)
---

How to get a score (or a probability of belonging to one of the two classes)
instead of a label as the prediction output?

Thanks a lot,
Francois.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.