How to calculate accuracy from confusion matrix?
古いコメントを表示
How to calculate accuracy from confusion matrix?
1 件のコメント
darova
2019 年 5 月 30 日
Im confused a little bit. What do you mean?
回答 (1 件)
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
2024 年 4 月 22 日
how to calculate sensiticity and ppv??
Shivalika Singh
2024 年 4 月 22 日
sensitivity**
Rik
2024 年 4 月 23 日
Did you check Wikipedia for a formula?
カテゴリ
ヘルプ センター および File Exchange で Simulink 3D Animation についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!