Accessing the Confusion Matrix Data

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

 Respuesta aceptada

Stephan
Stephan el 17 de Sept. de 2019
Editada: Stephan el 17 de Sept. de 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

Más respuestas (0)

Categorías

Más información sobre Statistics and Machine Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2018b

Etiquetas

Preguntada:

el 16 de Sept. de 2019

Editada:

el 17 de Sept. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by