LSTM-Neural-Network-for-Time-Series-Prediction icon indicating copy to clipboard operation
LSTM-Neural-Network-for-Time-Series-Prediction copied to clipboard

future predictions

Open krinkere opened this issue 5 years ago • 3 comments

How do you predict future data let's say for a year? i see how you take observed values, and then compare the results of the model to the actual to determine how accurate you are, but i dont see how you can easily say, predict for next year

krinkere avatar Jun 06 '19 13:06 krinkere

Did you find an answer?

bronko79 avatar Sep 05 '19 15:09 bronko79

Have the same question too

JaktensTid avatar Sep 22 '19 16:09 JaktensTid

You can predict a data sequence for a year, but it will be slightly inaccurate... ;)

In general, load your model and use the function "predict_point_by_point". Iterate in a for loop for a given window_size (a year for instance... depends what timestemp did you used during trainig, so you will have to recalculate it). Store and shift the current_predicted_window for a new prediction and re-run the prediction. At the end your model will predict a state based on its own prediction (therefore i would not recommend such an approach) :)

VincieD avatar Aug 05 '20 10:08 VincieD