Sensitivity ,Specificity and Accuracy calculation from Confusion matrix
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Lia
el 1 de Nov. de 2016
Respondida: kalyani kumari
el 23 de Jul. de 2019
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 .
0 comentarios
Respuesta aceptada
KALYAN ACHARJYA
el 24 de Mayo de 2017
Dear Lea, Whether you work on Image or Numerical data sets, If you have numerical datasets and already built confusion matrix then you can easily able to compute the above parameters. Please follow the following link- http://www.dataschool.io/simple-guide-to-confusion-matrix-terminology/
Thanks, if you need more clarification, let me know here.
1 comentario
fahmida afroz
el 7 de Feb. de 2018
Editada: fahmida afroz
el 7 de Feb. de 2018
Thank you so much Mr. ACHARJYA for this documentation. I was so stressed out not having proper way.
Más respuestas (1)
kalyani kumari
el 23 de Jul. de 2019
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
0 comentarios
Ver también
Categorías
Más información sobre Deep Learning Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!