Filter löschen
Filter löschen

How to calculate accuracy from confusion matrix?

47 Ansichten (letzte 30 Tage)
sandhya sandhya
sandhya sandhya am 30 Mai 2019
Kommentiert: Rik am 23 Apr. 2024 um 4:16
How to calculate accuracy from confusion matrix?

Antworten (1)

Rik
Rik am 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 Kommentare
Shivalika Singh
Shivalika Singh am 22 Apr. 2024 um 19:03
sensitivity**
Rik
Rik am 23 Apr. 2024 um 4:16
Did you check Wikipedia for a formula?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by