??? Error using ==> network.train at 145 Inputs are incorrectly sized for network. Matrix must have 1000 rows.

1 回表示 (過去 30 日間)
in=d(1:1000,1:40); ou=d(1:1000,41:44);
trainInput= d(201:1000,1:40); % input for training trainOutput= d(201:1000,41:44); % output for training
%-------------------------------------------------- % training the MLP Neural network % newff(input, target,[hidden layer1 hiddenlayer2 output],{transferFunction1 transferFunction2 transferFunction3}); % transferFunction defult for hidden layer is tansig but here use logsig % and purelin is default transferFunction for output layer net = newff(in,ou,[10 10 4],{'tansig' 'tansig' 'purelin'}); >> net.trainParam.epochs = 1000; %set the maximum number of epochs to train net.trainParam.goal = 0.02; %sum-squared error goal.
%-------------------------------------------------------------------------- % training the MLP by using a a train function
net = train(net,trainInput,trainOutput); ??? Error using ==> network.train at 145 Inputs are incorrectly sized for network. Matrix must have 1000 rows.
what are means by this error? i use 1000x44 double data...please Help!!! urgent...

採用された回答

Greg Heath
Greg Heath 2013 年 12 月 11 日
Transpose your matrices so that inputs and outputs have the same number of columns.

その他の回答 (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