Accessing the Confusion Matrix Data

2 vues (au cours des 30 derniers jours)
Steve
Steve le 16 Sep 2019
Modifié(e) : Stephan le 17 Sep 2019
Is the data for the confusion matrix available (besides just the number inside of the picture)?
I'm running many models and I would to programmatically extract the data so I don't have to record it by hand.
Thank you,
Steve

Réponse acceptée

Stephan
Stephan le 17 Sep 2019
Modifié(e) : Stephan le 17 Sep 2019
doc confusionmat
confusionmat gives you a matrix, containing all the informations needed - it can be used also as the NormalizedValues property of the confusionchart object:
cm = confusionchart(Y,predictedY);
Matrix = cm.NormalizedValues

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Produits


Version

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by