How to correctly use adapt with recurrent neural network training?
Show older comments
Hi all,
I am using the neural network toolbox to do the system identification for a multiple inputs multiple outputs system. This MIMO system was represented by a recurrent neural network (NARX model), and I want to achieve a kind of online training by using the function 'adapt'. But I am not exactly sure how to arrange the inputs and targets of adapt.
For example, the system is like: Y(k+1) = A*Y(k) + B*U(k), where Y(k) and U(k) are the output and input matrix of the system at time k. When I use adapt, should I use
[net,Y,E,Pf,Af,tr] = adapt(net,U(k),Y(k),Pi,Ai)
or
[net,Y,E,Pf,Af,tr] = adapt(net,U(k),Y(k+1),Pi,Ai)
or some other form?
Thank you very much for the help!
Accepted Answer
More Answers (1)
Greg Heath
on 8 Oct 2013
Edited: Greg Heath
on 8 Oct 2013
1. Solve the problem using train
help narxnet
help closeloop
2. Make sure you initialize the RNG so that you can repeat the best of multiple random weight initialization designs.
3. When finished, substitute adapt for train and repeat.
Hope this helps.
Thank you for formally accepting my answer.
Greg
2 Comments
Greg Heath
on 17 Oct 2013
The operational configuration of feedback timeseries NNs is the closed loop configuration that accepts past outputs. In contrast, the openloop configuration is only used for design because the feedback signal is the desired target.
See my latest posts in the NEWSREADER and ANSWERS re closeloop
neural greg closeloop
Hope this helps.
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!