How to calculate accuracy from confusion matrix?

37 visualizzazioni (ultimi 30 giorni)
sandhya sandhya
sandhya sandhya il 30 Mag 2019
Risposto: Rik il 30 Mag 2019
How to calculate accuracy from confusion matrix?

Risposte (1)

Rik
Rik il 30 Mag 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.

Categorie

Scopri di più su Creating and Concatenating Matrices in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by