can't view confusion matrix in matlab

4 次查看(过去 30 天)
sherok mohamed
sherok mohamed 2017-7-21
编辑: YT 2017-12-14
Could you help me , I want to show my confusion matrix in readable view, as I have 18 classes so I got non readable confusion matrix when I click confusion button on neural network tool box like that image
Please help me to view it like this
I tried plotconfusion function but I got the all confusion matrix but I need the training and testing matrix

回答(2 个)

Greg Heath
Greg Heath 2017-7-23
Use the training record tr from [ net tr ] = train(net,x,t) to find the separate sets of tr/val/tst indices. From these you can use plot confusion to get the 3 separate confusion matrices.
You may want to take a good look at those matrices to see which classes never get confused with each other. Then you may be able to use plotconfusion to obtain several submatrices that simplify the understanding of the misclassifications.
Hope this helps.
Thank you for formally accepting my answer
Greg

YT
YT 2017-12-14
编辑:YT 2017-12-14
You could try an answer provided here:
You can extract the handles of the plotconfusion figure and re-plot them to on a new figure to have a better view.

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by