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

29 visualizaciones (últimos 30 días)
  1 comentario
Mick
Mick el 16 de Jun. de 2023
This might help (https://www.mathworks.com/matlabcentral/fileexchange/60900-multi-class-confusion-matrix)

Iniciar sesión para comentar.

Respuestas (1)

Ishit
Ishit el 18 de Jun. de 2023
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.

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by