summary_confusion
Version 1.0.1 (2.03 KB) by
Kevin Chng
A function to summarise your predicted result & actual result (Accuracy,Recall,Precision,F1,F2,F0.5)
The function will return you the result (Accuracy,Recall,Precision,F1,F2,F0.5) based on your input (Actual and Prediction).
For example,
load fisheriris
X = meas;
Y = species;
Mdl = fitcknn(X,Y,'NumNeighbors',5,'Standardize',1);
predictedY = resubPredict(Mdl);
[table_ind_result,table_ove_result] = summary_confusion(Y,predictedY);
Cite As
Kevin Chng (2026). summary_confusion (https://www.mathworks.com/matlabcentral/fileexchange/70978-summary_confusion), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Descriptive Statistics >
Find more on Descriptive Statistics in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
