How to calculate sensitivity, specificity, F-score from confusion matrix ?
29 次查看(过去 30 天)
显示 更早的评论
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!