Stock-Prediction-Models, Gathers machine learning and deep learning models for Stock forecasting, included trading bots and simulations.
Table of contents
Contents
Models
Stacking models
- Deep Feed-forward Auto-Encoder Neural Network to reduce dimension + Deep Recurrent Neural Network + ARIMA + Extreme Boosting Gradient Regressor
- Adaboost + Bagging + Extra Trees + Gradient Boosting + Random Forest + XGB
Deep-learning models
- LSTM Recurrent Neural Network
- Encoder-Decoder Feed-forward + LSTM Recurrent Neural Network
- LSTM Bidirectional Neural Network
- 2-Path LSTM Recurrent Neural Network
- GRU Recurrent Neural Network
- Encoder-Decoder Feed-forward + GRU Recurrent Neural Network
- GRU Bidirectional Neural Network
- 2-Path GRU Recurrent Neural Network
- Vanilla Recurrent Neural Network
- Encoder-Decoder Feed-forward + Vanilla Recurrent Neural Network
- Vanilla Bidirectional Neural Network
- 2-Path Vanilla Recurrent Neural Network
- LSTM Sequence-to-Sequence Recurrent Neural Network
- LSTM with Attention Recurrent Neural Network
- LSTM Sequence-to-Sequence with Attention Recurrent Neural Network
- LSTM Sequence-to-Sequence Bidirectional Recurrent Neural Network
- LSTM Sequence-to-Sequence with Attention Bidirectional Recurrent Neural Network
- LSTM with Attention Scaled-Dot Recurrent Neural Network
- LSTM with Dilated Recurrent Neural Network
- Only Attention Neural Network
- Multihead Attention Neural Network
- LSTM with Bahdanau Attention
- LSTM with Luong Attention
- LSTM with Bahdanau + Luong Attention
- DNC Recurrent Neural Network
- Residual LSTM Recurrent Neural Network
- Byte-net
- Attention is all you need
- Fairseq
Agents
- Turtle-trading agent
- Moving-average agent
- Signal rolling agent
- Policy-gradient agent
- Q-learning agent
- Evolution-strategy agent
- Double Q-learning agent
- Recurrent Q-learning agent
- Double Recurrent Q-learning agent
- Duel Q-learning agent
- Double Duel Q-learning agent
- Duel Recurrent Q-learning agent
- Double Duel Recurrent Q-learning agent
- Actor-critic agent
- Actor-critic Duel agent
- Actor-critic Recurrent agent
- Actor-critic Duel Recurrent agent
- Curiosity Q-learning agent
- Recurrent Curiosity Q-learning agent
- Duel Curiosity Q-learning agent
- Neuro-evolution agent
- Neuro-evolution with Novelty search agent
Data Explorations
- stock market study on TESLA stock, tesla-study.ipynb
- fashion trending prediction with cross-validation, fashion-forecasting.ipynb
- Bitcoin analysis with LSTM prediction, bitcoin-analysis-lstm.ipynb
- Outliers study using K-means, SVM, and Gaussian on TESLA stock outliers.ipynb
- Kijang Emas Bank Negara, kijang-emas-bank-negara.ipynb
Simulations
- Stock market simulation using Monte Carlo, stock-forecasting-monte-carlo.ipynb
- Stock market simulation using Monte Carlo Markov Chain Metropolis-Hasting, mcmc-stock-market.ipynb
Tensorflow-js
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
This agent only able to buy or sell 1 unit per transaction.
- Turtle-trading agent, turtle-agent.ipynb
- Moving-average agent, moving-average-agent.ipynb
- Signal rolling agent, signal-rolling-agent.ipynb
- Policy-gradient agent, policy-gradient-agent.ipynb
- Q-learning agent, q-learning-agent.ipynb
- Evolution-strategy agent, evolution-strategy-agent.ipynb
- Double Q-learning agent, double-q-learning-agent.ipynb
- Recurrent Q-learning agent, recurrent-q-learning-agent.ipynb
- Double Recurrent Q-learning agent, double-recurrent-q-learning-agent.ipynb
- Duel Q-learning agent, duel-q-learning-agent.ipynb
- Double Duel Q-learning agent, double-duel-q-learning-agent.ipynb
- Duel Recurrent Q-learning agent, duel-recurrent-q-learning-agent.ipynb
- Double Duel Recurrent Q-learning agent, double-duel-recurrent-q-learning-agent.ipynb
- Actor-critic agent, actor-critic-agent.ipynb
- Actor-critic Duel agent, actor-critic-duel-agent.ipynb
- Actor-critic Recurrent agent, actor-critic-recurrent-agent.ipynb
- Actor-critic Duel Recurrent agent, actor-critic-duel-recurrent-agent.ipynb
- Curiosity Q-learning agent, curiosity-q-learning-agent.ipynb
- Recurrent Curiosity Q-learning agent, recurrent-curiosity-q-learning.ipynb
- Duel Curiosity Q-learning agent, duel-curiosity-q-learning-agent.ipynb
- Neuro-evolution agent, neuro-evolution.ipynb
- Neuro-evolution with Novelty search agent, neuro-evolution-novelty-search.ipynb
Results free agent
This agent able to buy or sell N-units per transaction.
evolution strategy agent evolution-strategy-agent.ipynb
total gained 11037.529911, total investment 110.375299 %
evolution strategy with bayesian agent evolution-strategy-bayesian-agent.ipynb
total gained 13295.469683, total investment 132.954697 %
Results signal prediction
LSTM Recurrent Neural Network
LSTM Bidirectional Neural Network
2-Path LSTM Recurrent Neural Network
Deep Feed-forward Auto-Encoder Neural Network to reduce dimension + Deep Recurrent Neural Network + ARIMA + Extreme Boosting Gradient Regressor
LSTM Sequence-to-Sequence Recurrent Neural Network
LSTM Sequence-to-Sequence with Attention Recurrent Neural Network
LSTM Sequence-to-Sequence with Attention Bidirectional Recurrent Neural Network
Encoder-Decoder Feed-forward + LSTM Recurrent Neural Network
Adaboost + Bagging + Extra Trees + Gradient Boosting + Random Forest + XGB