Accessing the Confusion Matrix Data

12 visualizzazioni (ultimi 30 giorni)
Steve
Steve il 16 Set 2019
Modificato: Stephan il 17 Set 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

Risposta accettata

Stephan
Stephan il 17 Set 2019
Modificato: Stephan il 17 Set 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

Più risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by