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

2 ビュー (過去 30 日間)
H.k
H.k 2018 年 1 月 28 日
コメント済み: H.k 2018 年 1 月 30 日
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 件のコメント
H.k
H.k 2018 年 1 月 29 日
thanks for recoding.. but the error still exists "Output data size does not match net.outputs{2}.size"
Walter Roberson
Walter Roberson 2018 年 1 月 29 日
As I indicated, you should recode in terms of newfit()

サインインしてコメントする。

採用された回答

Walter Roberson
Walter Roberson 2018 年 1 月 28 日
You should consider recoding in terms of the newer function newfit()
  3 件のコメント
Walter Roberson
Walter Roberson 2018 年 1 月 29 日
Thanks, Greg.
H.k
H.k 2018 年 1 月 30 日
thanks, it works.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSequence 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