How can I find the confusion matrix for a three class problem and thenfind specificity, sensitivity and accuracy from them.
2 ビュー (過去 30 日間)
古いコメントを表示
How can I find the confusion matrix for a three class problem and then find specificity, sensitivity and accuracy from them.
0 件のコメント
回答 (1 件)
Ilya
2013 年 2 月 28 日
If you have Statistics Toolbox, take a look at the confusionmat function. The accuracy is simply the sum of the diagonal elements divided by the sum of all elements in the matrix. Specificity and sensitivity are unambiguously defined for binary classification. You'd have to come up with your definitions for 3 classes.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Logical についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!