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.
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 ?
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.