Forecasting using LSTM network

85 Views Asked by At

I have a time series data of size 150. I trained 80% (120 data points) and tested the remaining 20% (30 data points) of the data set by LSTM network. So I got the predicted values of the series from 121 st to 150 th. I just used the code given in the following link.

https://www.mathworks.com/help/deeplearning/examples/time-series-forecasting-using-deep-learning.html;jsessionid=a48d67fe7e9929d7ac61cf112b9d

By using this code I am not able to forecast the future values (after 150 th) of the series. How can we do it?

Can any one please help me in this and send the matlab code ?

1

There are 1 best solutions below

0
On

You can make a change in the XTest length to incorporate your "151 onwards points".

Note that you can no longer evaluate the error as your labeled data gets over by 150 points. You can just get YPred. You will have to figure out the syntax.

Please consider asking such questions on CS Stack Exchange or StackOverflow.