search for: pimamodel

Displaying 1 result from an estimated 1 matches for "pimamodel".

Did you mean: arimamodel
2006 Nov 24
1
How to find AUC in SVM (kernlab package)
...ing Area Under Curve (AUC). I know ROCR package can do this job but I found all example in ROCR package have include prediction, for example, ROCR.hiv {ROCR}. My problem is how to produce prediction in SVM and to find AUC. Here is a simple example: library(MASS) library(kernlab) library(ROCR) pimamodel <- ksvm(type ~ .,data=Pima.tr,type="C-svc",C=10,prob.model=TRUE) pimamodel fitted(pimamodel) pima.pred <- predict(pimamodel, Pima.te[,-8], type="probabilities") pima.pred # try to find AUC #predid.no <- prediction(pima.pred[,1], Pima.te[,8]) #predid.yes <- predict...