??? Error using ==> network.train at 145 Inputs are incorrectly sized for network. Matrix must have 1000 rows.
3 views (last 30 days)
Show older comments
Muhamad Jaliluddin Mazlan
on 10 Dec 2013
Commented: Muhamad Jaliluddin Mazlan
on 11 Dec 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 Comments
Accepted Answer
Greg Heath
on 11 Dec 2013
Transpose your matrices so that inputs and outputs have the same number of columns.
More Answers (0)
See Also
Categories
Find more on Define Shallow Neural Network Architectures in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!