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

1 visualizzazione (ultimi 30 giorni)
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 Commenti
H.k
H.k il 29 Gen 2018
thanks for recoding.. but the error still exists "Output data size does not match net.outputs{2}.size"
Walter Roberson
Walter Roberson il 29 Gen 2018
As I indicated, you should recode in terms of newfit()

Accedi per commentare.

Risposta accettata

Walter Roberson
Walter Roberson il 28 Gen 2018
You should consider recoding in terms of the newer function newfit()
  3 Commenti

Accedi per commentare.

Più risposte (0)

Categorie

Scopri di più su Sequence and Numeric Feature Data Workflows in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by