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 (2024). summary_confusion (https://www.mathworks.com/matlabcentral/fileexchange/70978-summary_confusion), MATLAB Central File Exchange. 검색됨 .
MATLAB 릴리스 호환 정보
개발 환경:
R2019a
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux카테고리
- AI, Data Science, 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!