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

3 Ansichten (letzte 30 Tage)
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...

Akzeptierte Antwort

Greg Heath
Greg Heath am 11 Dez. 2013
Transpose your matrices so that inputs and outputs have the same number of columns.

Weitere Antworten (0)

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by