Accessing the Confusion Matrix Data

5 次查看(过去 30 天)
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

采纳的回答

Stephan
Stephan 2019-9-17
编辑:Stephan 2019-9-17
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

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Descriptive Statistics and Visualization 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by