nan_row_col_deletion Classification nan_test_sc

NaN Toolbox >> NaN Toolbox > Classification > nan_svmrocplot

nan_svmrocplot

plotroc draws the recevier operating characteristic(ROC) curve for an svm-model

Calling Sequence

auc = nan_svmplotroc(training_label, training_instance [, libsvm_options -v cv_fold])
Use cross-validation on training data to get decision values and plot ROC curve.
auc = nan_svmplotroc(testing_label, testing_instance, model)
Use the given model to predict testing data and obtain decision values for ROC

Examples

load('heart_scale.mat');
nan_svmrocplot(heart_scale_label, heart_scale_inst,'-v 5');

[y,x] = readsparse('heart_scale');
model = nan_svmtrain(y,x);
nan_svmrocplot(y,x,model);
nan_row_col_deletion Classification nan_test_sc