Confusion Matrix (size: nxn) - 12 Parameter Function
Versión 1.0.0 (1,55 KB) por
Sambit Supriya Dash
After creation of a Machine Learning (ML) model, 12 performance parameters have been calculated using the following function out of CF(nxn).
"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 LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0 |