Sensitivity ,Specificity and Accuracy calculation from Confusion matrix
Afficher commentaires plus anciens
I calculate correct accuracy classification from confusion matrix as 1-c ,Sensiticity TP/(TP+FN) as SE = cm(2,2)/sum(cm(2,:)) and Specificity TN/(TN+FP) SP=cm(1,1)/sum(cm(1,:)) to a binary classification problem .Are these calculations right ?I use 10 fold cross validation in my data and i want calculate CA,SE ,SP of the test set which incudes 2 samples each time.Sometimes in test all are positives and classified as positives and then specificity is NaN .How can i cope this ?Im interested for the mean of these in 10 folds .
Réponse acceptée
Plus de réponses (1)
kalyani kumari
le 23 Juil 2019
0 votes
i have specificity,sensitivity,accuracy and precision values.but unable to write the matlab code to generate average values for individual and cofusion matrix for 100 samples.plz help me out how to write the code
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!