How to view confusion matrix of neural network?

I have created it using npr tool. I also want to plot following things of the network.
There were options to view all these plots after training but I did not saved them at that time. How can I see those plots and confusion matrix now.
Mat file is attached in which there is a network I am talking about.
load it and see if you can let me know the things mentioned above.

 Accepted Answer

If you have saved t(=targets), y=(outputs), x(=inputs), net and tr then simply plot:
% Plots
figure; plotconfusion(t,y);
figure; plotperform(tr);
figure; plottrainstate(tr);
figure; ploterrhist(e);
figure; plotfit(net,x,t);
figure; plotregression(t,y);

5 Comments

With plotconfusion, I am able to see only one confusion matrix. There should be 4 matrices (Training, Validation, Testing, All) like this one:
Hello!
well if you open in your workpace your tr variable there you can find the variables tr.trainInd, for training results , the tr.valInd and tr.testInd . Use them instead of t,y in order to plot whatever kind of data you wish!
Hope this is helpful!
Hell Greg
Are there any method to show only alll confusion matrix?

Sign in to comment.

More Answers (0)

Categories

Find more on Deep Learning Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!