MATLAB: How can i make a closed loop NarxNet with feedback of predicted values

feedbacknarxnetNetworkneural

Hi, i´m trying to make a closed-loop Narxnet feedbacking future values. I mean, with feedback of (y+1) or (y+5), but i can´t find a way to do it. I supposed that using the feedback delay with a positive number i could manage it, but i´m not sure if this is correct: net = narxnet(0,5,20); %20 neurons, 0 delay input, y+5 feedback? Instead of delaying it with 1:d
Thank you beforehand

Best Answer

"but once predicted, feedback them"
That is exactly what narxnet does. The default values ID,FD = (1:2,1:2) yield
1. y(t) = f( x(t-1), x(t-2), y(t-1), y(t-2)) for t >= 3
which can also be interpreted as
2. y(t+3) = f( x(t+2), x(t+1), y(t+2), y(t+1)) for t>= 0
The nondefault input ID = 0:2 adds x(t) to the RHS of 1
The nondefault input FD = 0:2 adds y(t) to the RHS of 1 for OPENLOOP ONLY!!!
FD = 0 is not allowed for CLOSELOOP. Any attempt to do so will result in either an ERROR, or the command is ignored.
Hope this helps.
Thank you for formally accepting my answer
Greg