Skip to content

Gathers & improves machine learning and deep learning models for Stock & Crypto forecasting, included trading bots and simulations.

License

Notifications You must be signed in to change notification settings

bitnom/Timeseries-Prediction-Models

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

MIT License


Stock-Prediction-Models, Gathers machine learning and deep learning models for Stock forecasting, included trading bots and simulations.

Table of contents

Contents

Models

  1. Deep Feed-forward Auto-Encoder Neural Network to reduce dimension + Deep Recurrent Neural Network + ARIMA + Extreme Boosting Gradient Regressor
  2. Adaboost + Bagging + Extra Trees + Gradient Boosting + Random Forest + XGB
  1. LSTM Recurrent Neural Network
  2. Encoder-Decoder Feed-forward + LSTM Recurrent Neural Network
  3. LSTM Bidirectional Neural Network
  4. 2-Path LSTM Recurrent Neural Network
  5. GRU Recurrent Neural Network
  6. Encoder-Decoder Feed-forward + GRU Recurrent Neural Network
  7. GRU Bidirectional Neural Network
  8. 2-Path GRU Recurrent Neural Network
  9. Vanilla Recurrent Neural Network
  10. Encoder-Decoder Feed-forward + Vanilla Recurrent Neural Network
  11. Vanilla Bidirectional Neural Network
  12. 2-Path Vanilla Recurrent Neural Network
  13. LSTM Sequence-to-Sequence Recurrent Neural Network
  14. LSTM with Attention Recurrent Neural Network
  15. LSTM Sequence-to-Sequence with Attention Recurrent Neural Network
  16. LSTM Sequence-to-Sequence Bidirectional Recurrent Neural Network
  17. LSTM Sequence-to-Sequence with Attention Bidirectional Recurrent Neural Network
  18. LSTM with Attention Scaled-Dot Recurrent Neural Network
  19. LSTM with Dilated Recurrent Neural Network
  20. Only Attention Neural Network
  21. Multihead Attention Neural Network
  22. LSTM with Bahdanau Attention
  23. LSTM with Luong Attention
  24. LSTM with Bahdanau + Luong Attention
  25. DNC Recurrent Neural Network
  26. Residual LSTM Recurrent Neural Network
  1. Simple signal rolling agent
  2. Q-learning deep learning agent
  3. Evolution-strategy agent
  4. Evolution-strategy-Bayesian agent

Data Explorations

  1. Downloader usage: python downloader_crypto.py bitmex BTC/USD 2015-01-01T00:00:00Z 1d btc.csv
  2. stock market study on TESLA stock, tesla-study.ipynb
  3. fashion trending prediction with cross-validation, fashion-forecasting.ipynb
  4. Bitcoin analysis with LSTM prediction, bitcoin-analysis-lstm.ipynb
  5. Outliers study using K-means, SVM, and Gaussian on TESLA stock outliers.ipynb

Simulations

  1. Stock market simulation using Monte Carlo, stock-forecasting-monte-carlo.ipynb
  2. Stock market simulation using Monte Carlo Markov Chain Metropolis-Hasting, mcmc-stock-market.ipynb

I code LSTM Recurrent Neural Network and Simple signal rolling agent inside Tensorflow JS, you can try it here, huseinhouse.com/stock-forecasting-js

Results

Results Agent

signal rolling agent, READ MORE

total gained 185.099850, total investment 1.850998 %

q-learning deep learning agent READ MORE

total gained -108.630036, total investment -1.086300 %

evolution strategy agent READ MORE

total gained 8240.610260, total investment 82.406103 %

evolution strategy with bayesian agent READ MORE

total gained 9221.279840, total investment 92.212798 %

alt text

Results signal prediction

LSTM Recurrent Neural Network

alt text

LSTM Bidirectional Neural Network

alt text

2-Path LSTM Recurrent Neural Network

alt text

Deep Feed-forward Auto-Encoder Neural Network to reduce dimension + Deep Recurrent Neural Network + ARIMA + Extreme Boosting Gradient Regressor

alt text

LSTM Sequence-to-Sequence Recurrent Neural Network

alt text

LSTM Sequence-to-Sequence with Attention Recurrent Neural Network

alt text

LSTM Sequence-to-Sequence with Attention Bidirectional Recurrent Neural Network

alt text

Encoder-Decoder Feed-forward + LSTM Recurrent Neural Network

alt text

Adaboost + Bagging + Extra Trees + Gradient Boosting + Random Forest + XGB

alt text

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 94.1%
  • JavaScript 5.6%
  • Other 0.3%