How to calculate accuracy from confusion matrix?

9 ビュー (過去 30 日間)
sandhya sandhya
sandhya sandhya 2019 年 5 月 30 日
コメント済み: Rik 2024 年 4 月 23 日
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 日
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 日
sensitivity**
Rik
Rik 2024 年 4 月 23 日
Did you check Wikipedia for a formula?

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

カテゴリ

Help Center および File ExchangeStatistics and Machine Learning Toolbox についてさらに検索

タグ

製品

Community Treasure Hunt

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

Start Hunting!

Translated by