Confusion Matrix (size: nxn) - 12 Parameter Function

After creation of a Machine Learning (ML) model, 12 performance parameters have been calculated using the following function out of CF(nxn).
6 Descargas
Actualizado 13 mar 2023

Ver licencia

"CF" is abb. for Confusion Matrix generated of any size,
For example, use this CF, and for beta = 1, use this function given in the code.
Directly, paste the function in the same folder as the main script.
% Main Script
CF = [220, 75, 89; 94, 43, 57; 21, 26, 58]; % Confusion Matrix
beta = 1; % corrector
[TP,FP,FN,TN,precision,recall,F1,accuracy,specificity,sensitivity,prevalence,...
PPV,NPV,detection_rate,detection_prevalence,balanced_acc] = confusionMatrix(CF,beta);

Citar como

Sambit Supriya Dash (2024). Confusion Matrix (size: nxn) - 12 Parameter Function (https://www.mathworks.com/matlabcentral/fileexchange/126165-confusion-matrix-size-nxn-12-parameter-function), MATLAB Central File Exchange. Recuperado .

Compatibilidad con la versión de MATLAB
Se creó con R2022b
Compatible con cualquier versión
Compatibilidad con las plataformas
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versión Publicado Notas de la versión
1.0.0