using neural network (NARX) to do prediction
이전 댓글 표시
To whom it may concern,
First of all, Thanks so much for your time to look into my questions. I am trying to use open loop in NN to train my data (a vector for external input and target), and then transform to close loop to make predictions. and followed the example in the website,
http://www.mathworks.com/help/nnet/ug/multistep-neural-network-prediction.html
But I always came across errors at the command 'closeloop', so I did some tests on the data to see how the 'closeloop' command functions. What i did was I ran the code below using some artificially generated data (see the attachment). An interesting thing is that the code below get run well with the data set,
net = narxnet(1:3,1:3,10);
[x,xi,ai,t] = preparets(net,L,{},P);
net2 = train(net,x,t,xi,ai);
[y1,xf,af] = net2(x,xi,ai);
[netc,xi,ai] = closeloop(net2,xf,af);
[y2,xf,af] = netc(L1,xi,ai);
However,as soon as I changed some P value, let's say the first value of P{1,5} from 8 to 80, the command 'closeloop' won't work well immediately. From this test, I don't think that the data organization is wrong, probably it is because something related to the data itself need to meet up some requirement. Am I right? would you help me look into this problem please?
Thanks a lot!
Regards
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!