フィルターのクリア

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 Center および File ExchangeStatistics 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