MATLAB Answers

0

How to calculate accuracy from confusion matrix?

Asked by sandhya sandhya on 30 May 2019
Latest activity Answered by Rik
on 30 May 2019
How to calculate accuracy from confusion matrix?

  1 Comment

Im confused a little bit. What do you mean?

Sign in to comment.

Tags

Products

1 Answer

Answer by Rik
on 30 May 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.

  0 Comments

Sign in to comment.