An open API service indexing awesome lists of open source software.

https://github.com/easonlai/stock_forecast_lstm

This is a demo repo to demonstrate how to use the famous type of Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM) to forecast time-series data of stock price.
https://github.com/easonlai/stock_forecast_lstm

alpha-vantage lstm lstm-model lstm-neural-networks rnn rnn-keras rnn-lstm stock-data stock-forecast stock-price-prediction

Last synced: 4 months ago
JSON representation

This is a demo repo to demonstrate how to use the famous type of Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM) to forecast time-series data of stock price.

Awesome Lists containing this project

README

        

# Stock Price Forecast with LSTM

This is a demo repo to demonstrate how to use the famous type of Recurrent Neural Network (RNN), Long Short-Term Memory (LSTM) to forecast time-series data of stock price.

The main difference between RNN and LSTM is in terms of which one maintains information in the memory for a long period of time. Here LSTM has an advantage over RNN as LSTM can handle the information in memory for a long period of time as compared to RNN. But the question is what is different in LSTM than RNN by which LSTMs are capable of maintaining long-term temporal dependencies (remembering information for a long period of time).

* stock_forecast_lstm_msft.ipynb <-- Sample using daily time-series data of MSFT stock price.
* stock_forecast_lstm_tsla.ipynb <-- Sample using hourly time-series data of TSLA stock price.

Reference : [What is the main difference between RNN and LSTM | NLP | RNN vs LSTM – Data Science Duniya (ashutoshtripathi.com)](https://ashutoshtripathi.com/2021/07/02/what-is-the-main-difference-between-rnn-and-lstm-nlp-rnn-vs-lstm/)

RNN vs LSTM Node in Simple

![alt text](https://github.com/easonlai/stock_forecast_lstm/blob/main/git-images/rnn-vs-lstm-2.png)
[Reference](https://www.researchgate.net/figure/RNN-v-s-LSTM-a-RNNs-use-their-internal-state-memory-to-process-sequences-of-inputs_fig1_341131167)

RNN vs LSTM Node in Details

![alt text](https://github.com/easonlai/stock_forecast_lstm/blob/main/git-images/rnn-vs-lstm.png)
[Reference](https://ashutoshtripathi.com/2021/07/02/what-is-the-main-difference-between-rnn-and-lstm-nlp-rnn-vs-lstm/)

***** All stock prediction price for demostration and reference only. *****