How do you make a prediction (forecast) from a trained network for a given input using NARX?

1 view (last 30 days)
I am using the neural network toolbox that Matlab provides. I trained a NARX neural network for time series problems. I am trying to predict future values using the inputs I am giving to the neural network.
I am able to see the error graphs and the response for the testing and validation samples, but how do I test new samples? How can I make a prediction using the trained neural network? I could not find any documentation.
This was my attempt
>> net(input2')
ans =
[917.9814]
But no matter what the inputs are, I am getting the exact same output always....

Accepted Answer

Greg Heath
Greg Heath on 23 Jun 2015
The time series is described by a difference equation. Therefore, it should not surprise you that you need to prescribe the initial input and feedback delay states to obtain the correct output. See the documentation for the correct syntax.
doc narxnet
help narxnet
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Sequence and Numeric Feature Data Workflows 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!