??? 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...
0 个评论
采纳的回答
Greg Heath
2013-12-11
Transpose your matrices so that inputs and outputs have the same number of columns.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!