How i could use too large data sets in neural networks ??

2 views (last 30 days)
I'm using neural networks in making regression and I want to use it in training large data sets with output data more than the input >> in the below code I've got an input of [12*480] and the output is a [1*905] cell array each cell has a matrix of [12*3], each time I run the code it gives me an errors that "Output data size does not match net.outputs{2}.size", please help me for repairing this error, thanx in advance.
A=[];
for j=1:905
k=rand(12,3);
A=[A,{k}]
end
P= rand(12,480)'
net=newff(minmax(P), [20,5], {'tansig','purelin'},'trainlm');
net.trainParam.show = 50;
net.trainParam.lr = 0.05;
net.trainParam.epochs =1000;
net.trainParam.goal = 1e-3;
Nets=[];
for bi=1:905
T=A{:,bi}';
net1=train(net,P,T);
Nets=[Nets,{net1}];
end
at the end of the simulation the variable Nets should have 905 model each with [12*3] network
  3 Comments
H.k
H.k on 29 Jan 2018
thanks for recoding.. but the error still exists "Output data size does not match net.outputs{2}.size"
Walter Roberson
Walter Roberson on 29 Jan 2018
As I indicated, you should recode in terms of newfit()

Sign in to comment.

Accepted Answer

Walter Roberson
Walter Roberson on 28 Jan 2018
You should consider recoding in terms of the newer function newfit()
  3 Comments

Sign in to comment.

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows 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!