??? Error using ==> network.train at 145 Inputs are incorrectly sized for network. Matrix must have 1000 rows.
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Muhamad Jaliluddin Mazlan
am 10 Dez. 2013
Kommentiert: Muhamad Jaliluddin Mazlan
am 11 Dez. 2013
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...
0 Kommentare
Akzeptierte Antwort
Greg Heath
am 11 Dez. 2013
Transpose your matrices so that inputs and outputs have the same number of columns.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Define Shallow Neural Network Architectures finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!