Need help with stocks_rnn?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

414 Stars 193 Forks Apache License 2.0 7 Commits 5 Opened issues


Stock price prediction with LSTMs in TensorFlow

Services available


Need anything else?

Contributors list

# 143,059
6 commits

Stock Price Prediction using LSTM

Downloads adjusted daily returns of a configurable date range and set of stocks from Yahoo Finance, concatenates them all into a long sequence, and trains an LSTM to predict future returns based on the sequence of past returns.


  • Implemented in TensorFlow, adapted from Google's PTB RNN prediction example
  • Returns are normalized using standard deviation (lookback configurable). Positive drift should be negligible.
  • Train / validation / test sets are organized in chronological order.


  • TensorFlow
  • pandas_datareader
  • numpy

Does it work?

Not really, current results aren't much better than chance. The data might be too noisy for this method, or there might be something wrong in the code or model.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.