필터 지우기
필터 지우기

How to calculate sensitivity, specificity, F-score from confusion matrix ?

조회 수: 27 (최근 30일)
Fatin Nurdiana Binti Jayah
Fatin Nurdiana Binti Jayah 2023년 6월 16일
답변: Ishit 2023년 6월 18일
  댓글 수: 1
Mick
Mick 2023년 6월 16일
This might help (https://www.mathworks.com/matlabcentral/fileexchange/60900-multi-class-confusion-matrix)

댓글을 달려면 로그인하십시오.

답변 (1개)

Ishit
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);
Output for the file can be seen in in this link output.

카테고리

Help CenterFile 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!

Translated by