[R] Confusion matrix from cross validation in R:

parmee pkmankoo09 at gmail.com
Wed Oct 14 04:55:28 CEST 2009


Hey!

How do I get the confusion matrix after performing 10-fold cross validation
from SVM in R?

When I try to print it, I get the confusion matrix without cross validation.
I need to compute PPV. Should I report PPV without CV and total accuracy
with CV?

I am confused.

> svmtrain <- svm(xtrain,ytrain,kernel="sigmoid",cross=10)
> pred <- predict(svmtrain, xtrain)
> table(pred, ytrain)

Pam
-- 
View this message in context: http://www.nabble.com/Confusion-matrix-from-cross-validation-in-R%3A-tp25883309p25883309.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list