LSTM Google Stock Prediction part 2 -Seasonal Decomposition Time SeriesLevel 2, 22 minutes
- Brandyn Ewanek
- Dec 9, 2022
- 2 min read
Updated: Aug 21, 2023
In our second part of the LSTM stock prediction using Tensorflow. Now that we have our deep learning model with LSTM recurrent layer set up we focus on the times series part of our project and dive deep into the seasonal decomposition of our MACD, RSI, Fast Stochastic, and pct_change indicators. The goal here is that we can just use the last 20 days but for each indicator that creates a hundred features. As common with time series stock market prediction, we are limited on the number of rows. So we can't use so many features and we use Statsmodel seasonal decompose function from the statsmodel.tsa.seasonal library. This allows us to study the autocorrelation in only the seasonal component and extract which of the past days have a correlation. This allows us to choose only a few features instead of so many.
Want to read more?
Subscribe to datasimple.education to keep reading this exclusive post.