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);
引用格式
Kevin Chng (2025). summary_confusion (https://www.mathworks.com/matlabcentral/fileexchange/70978-summary_confusion), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
创建方式
R2019a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization > Descriptive Statistics >
在 Help Center 和 MATLAB Answers 中查找有关 Descriptive Statistics 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!