Borrar filtros
Borrar filtros

How to calculate accuracy from confusion matrix?

11 visualizaciones (últimos 30 días)
sandhya sandhya
sandhya sandhya el 30 de Mayo de 2019
Comentada: Rik el 23 de Abr. de 2024
How to calculate accuracy from confusion matrix?

Respuestas (1)

Rik
Rik el 30 de Mayo de 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 comentarios
Shivalika Singh
Shivalika Singh el 22 de Abr. de 2024
sensitivity**
Rik
Rik el 23 de Abr. de 2024
Did you check Wikipedia for a formula?

Iniciar sesión para comentar.

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by