stocks_rnn

by tencia

tencia / stocks_rnn

Stock price prediction with LSTMs in TensorFlow

401 Stars 191 Forks Last release: Not found Apache License 2.0 7 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

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.

Specifics

  • 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.

Dependencies

  • 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.