How to find the percentage accuracy of LDA classifier?
6 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hi, I'm looking for any code or function that will help me calculate the percentage accuracy of my LDA classifier. Thanks!
1 commentaire
Mohammad Sami
le 30 Mar 2020
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
Réponses (1)
Bhargavi Maganuru
le 2 Avr 2020
c = confusionmat(true,predicted);
and find the accuracy using
accuracy = sum(diag(c))/sum(c);
0 commentaires
Voir également
Catégories
En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!