A big problem to use funtion plotconfusion

I am using nn to train my data,and I want to use plotconfusion to make a image like this>>https://www.mathworks.com/help/nnet/ref/plotconfusion.html But I always get the error: Error using confusion Too many output arguments. I can't find any similar problem in Internet. Pleas help me. this is my code: trainLabel=full(tools.ind2vec(label'+1)); net=train(net,testdata',trainLabel); y=net(testdata') plotconfusion(trainLabel,y);
label is my traget ,type is double 155*1 testdata is my input,type is double 155*156

1 Comment

I found the same erreur, have you any idea to resolve it

Sign in to comment.

Answers (1)

I am having the same problem as well. Surprisingly the same code was working, but after i increase the hidden layers (which got nothing to do with the out put dimension change and targets) I have got the error of " too many input arguments!!!!

Asked:

on 17 Mar 2017

Answered:

on 25 Apr 2018

Community Treasure Hunt

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

Start Hunting!