Hi all, i'm new on this forum although often I followed it to try to solve a variety of problems. This time I have not found anything that could help me and then I'm writing this message. I'm implementing a neural network (time-series) problem with the goal of making predictions. As a first implementation I used the graphical interface that offers Matlab (ntstool), I implemented the network, I have trained it and I have generated the code. Then I modified the code in order to to try to understand how it works (such as changing the number of layers, the number of neurons within each layer or by changing the learning functions). I have a good trained network with excellent graphics of error-autocorrelation, regression and performance. The problem that I have is in the generation of predictions. I have not quite clear, at the level of code, how "closeloop" works and part of the code that comes after (that is, what is the forecast for matlab one step ahead). Is there anyone who can help me in understanding this problem and possibly show me how to proceed to make t +1 and t + n predictions? Attached is the code I'm working with (for now I'm using input (y) = output (y) but the problem is also when I use input (x, y) = output (y)). One last thing: is a necessary condition that the series is stationary? or the NN does not care about unlike a normal AR model? Thanks

# MATLAB: Neural Network Time series – Forecast problems

neural network time series forecast

###### Related Question

- How evaluate multi-step forecasting performance for large dataset
- NARX model training in the Neural Network Tool Box
- Narnet Forecast with removedelay and closeloop
- How to define the size of feedback delays and number of hidden layer in narnet
- How close loop works in NAR neural network
- NARX – Next Day Prediction of Stock Prices
- How use the closed loop to predict future values
- Wy does sim function give such bad results after making a neural network timeserie
- Narx network producing different outputs for same input

## Best Answer