How to train an SVM classifier and calculate performance
Afficher commentaires plus anciens
Hi all,
I was already browsing through some similar question, but I still don't understand completely how to train an SVM classifier with matlab and afterwards calculate performance measures like AUC, Accuracy asf.
I managed to use fitcsvm to train a classifier and using leave-one-out cross-validation:
model=fitcsvm(data,groups,'Standardize',true,'ClassNames',{'group1','group2'},'Leaveout','on')
This works well, but how to calculate performance measures of my classifier after this step and plot the results?
Réponses (2)
Swarooph
le 1 Août 2016
1 vote
You could do one of several things:
3. Performance evaluation using perfcurve -- (Another link - Evaluate Classifier Performance Using perfcurve)
2 commentaires
holistic
le 2 Août 2016
Swarooph
le 2 Août 2016
If you look at the examples in the documentation, it seems to be using fitPosterior followed by resubPredict function.
Samaneh Nemati
le 2 Déc 2019
0 votes
you need to pass the output of svm classification (model) to predict function to get "label" and "scores".
Catégories
En savoir plus sur Discriminant Analysis dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!