How to calculate sensitivity, specificity, F-score from confusion matrix ?
조회 수: 27 (최근 30일)
이전 댓글 표시
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1413079/image.png)
댓글 수: 1
Mick
2023년 6월 16일
This might help (https://www.mathworks.com/matlabcentral/fileexchange/60900-multi-class-confusion-matrix)
답변 (1개)
Ishit
2023년 6월 18일
Hi Fatin, Please use this code as reference.
disp('_____________Multiclass demo_______________')
disp('Runing Multiclass confusionmat')
n=100;m=2;
actual=round(rand(1,n)*m);
predict=round(rand(1,n)*m);
[c_matrix,Result,RefereceResult]= confusion.getMatrix(actual,predict);
댓글 수: 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!