Predicting future values in a multivariate time forecasting LSTM model

好久不见. 提交于 2020-12-15 08:31:07

问题


I am confused on how to predict future results with a time series multivariate LSTM model.

I am trying to build a model for a stock market prediction and I have the following data features

Date DailyHighPrice DailyLowPrice Volume ClosePrice

If I train my model on 5 years of data up until today and I want to predict tomorrows ClosePrice, essentially I will need to predict all the data features for tomorrow. This is where I am confused.... Because if all the data features are dependent on one another how do i predict for one day in the future when all the data features for tomorrow are still unknown? Does anyone have any example code on how to deal with this issue?


回答1:


The solution I decided to go with here is a TimeseriesGenerator from the keras library.

https://machinelearningmastery.com/how-to-use-the-timeseriesgenerator-for-time-series-forecasting-in-keras/



来源:https://stackoverflow.com/questions/57167001/predicting-future-values-in-a-multivariate-time-forecasting-lstm-model

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!