How to find the percentage accuracy of LDA classifier?
조회 수: 7 (최근 30일)
이전 댓글 표시
Hi, I'm looking for any code or function that will help me calculate the percentage accuracy of my LDA classifier. Thanks!
댓글 수: 1
Mohammad Sami
2020년 3월 30일
How did you train your classifier.
The following functions will help you. check documentations for more details
confusionchart Create confusion matrix chart for classification problem
confusionmat Compute confusion matrix for classification problem
perfcurve Receiver operating characteristic (ROC) curve or other performance curve for classifier output
답변 (1개)
Bhargavi Maganuru
2020년 4월 2일
c = confusionmat(true,predicted);
and find the accuracy using
accuracy = sum(diag(c))/sum(c);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!