MATLAB Answers

Steve
0

Accessing the Confusion Matrix Data

Asked by Steve
on 16 Sep 2019
Latest activity Edited by Stephan
on 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

  0 Comments

Sign in to comment.

1 Answer

Answer by Stephan
on 17 Sep 2019
Edited by Stephan
on 17 Sep 2019
 Accepted Answer

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 Comments

Sign in to comment.