How to calculate accuracy from confusion matrix?

38 vues (au cours des 30 derniers jours)
sandhya sandhya
sandhya sandhya le 30 Mai 2019
Commenté : Rik le 23 Avr 2024 à 4:16
How to calculate accuracy from confusion matrix?
  1 commentaire
darova
darova le 30 Mai 2019
Im confused a little bit. What do you mean?

Connectez-vous pour commenter.

Réponses (1)

Rik
Rik le 30 Mai 2019
Accuracy = (TP+TN)/(TP+TN+FP+FN)
where: TP = True positive; FP = False positive; TN = True negative; FN = False negative
As you can find on Wikipedia ( https://en.m.wikipedia.org/wiki/Accuracy_and_precision )
So it should be trivial to calculate the accuracy from your confusion matrix: divide the sum of the diagonal by the total sum.
  3 commentaires
Shivalika Singh
Shivalika Singh le 22 Avr 2024 à 19:03
sensitivity**
Rik
Rik le 23 Avr 2024 à 4:16
Did you check Wikipedia for a formula?

Connectez-vous pour commenter.

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by