How can I find the confusion matrix for a three class problem and thenfind specificity, sensitivity and accuracy from them.
조회 수: 5 (최근 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에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!