How can I find the confusion matrix for a three class problem and thenfind specificity, sensitivity and accuracy from them.
Mostra commenti meno recenti
How can I find the confusion matrix for a three class problem and then find specificity, sensitivity and accuracy from them.
Risposte (1)
Ilya
il 28 Feb 2013
0 voti
If you have Statistics Toolbox, take a look at the confusionmat function. The accuracy is simply the sum of the diagonal elements divided by the sum of all elements in the matrix. Specificity and sensitivity are unambiguously defined for binary classification. You'd have to come up with your definitions for 3 classes.
Categorie
Scopri di più su Operating on Diagonal Matrices in Centro assistenza e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!