How to calculate accuracy from confusion matrix?

1 件のコメント

darova
darova 2019 年 5 月 30 日
Im confused a little bit. What do you mean?

サインインしてコメントする。

回答 (1 件)

Rik
Rik 2019 年 5 月 30 日

0 投票

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 件のコメント

Shivalika Singh
Shivalika Singh 2024 年 4 月 22 日
how to calculate sensiticity and ppv??
Shivalika Singh
Shivalika Singh 2024 年 4 月 22 日
sensitivity**
Rik
Rik 2024 年 4 月 23 日
Did you check Wikipedia for a formula?

サインインしてコメントする。

製品

タグ

質問済み:

2019 年 5 月 30 日

コメント済み:

Rik
2024 年 4 月 23 日

Community Treasure Hunt

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

Start Hunting!

Translated by