Open marpontik opened 2 years ago
LSTM is a way of organizing data in time windows,
you can get similar results and more scalable in terms of the model by passing the data to 3d arrays. a 3d array.
Example you can send a df pandas, this function will transform it into a 3d array (with its windows) https://github.com/Leci37/stocks-prediction-Machine-learning-RealTime-telegram/blob/develop/Data_multidimension.py#L122 with it you can work in LSTM, Dense, gru or any, for the ML mechanically it is like working with an image.
Hello, I would like to ask you when you use the LSTM algorithm , do you use timestep=1 in the input shape of LSTM? LSTM models shouldn't have a bigger timestep because of their memory state? Secondly, for the n-th day prediction, this timestep shouldn't be n? For example when we predict the 7th day, shouldn't we use timestep=7? What is the difference timestep=1 for one day forecast and for 7-th day forecast?
Thanks in advance!