Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. AI in Finance
  3. stockpredictionai

stockpredictionai

JavaScript

A complete AI-driven process using GANs with LSTM and CNN to predict stock price movements, incorporating diverse data sources and hyperparameter optimization.

GitHubGitHub
5.6k stars1.9k forks0 contributors

What is stockpredictionai?

StockPredictionAI is an open-source notebook that demonstrates a complete AI pipeline for predicting stock price movements using a Generative Adversarial Network (GAN) with LSTM and CNN architectures. It integrates multiple data sources, including technical indicators, sentiment analysis, and correlated assets, to capture complex market patterns. The project addresses the challenge of forecasting financial time series by leveraging advanced machine learning techniques and hyperparameter optimization.

Target Audience

Data scientists, quantitative analysts, and machine learning engineers interested in applying deep learning to financial forecasting. It's suitable for those with experience in time-series analysis, neural networks, and stock market data.

Value Proposition

Developers choose this project for its comprehensive approach, combining cutting-edge AI methods like GANs, reinforcement learning, and diverse feature engineering in a single pipeline. It offers a practical, code-driven example for experimenting with stock prediction models beyond traditional techniques.

Overview

   In this noteboook I will create a complete process for predicting stock price movements. Follow along and we will achieve some pretty good results. For that purpose we will use a Generative Adversarial Network (GAN) with LSTM, a type of Recurrent Neural Network, as generator, and a Convolutional Neural Network, CNN, as a discriminator. We use LSTM for the obvious reason that we are trying to predict time series data. Why we use GAN and specifically CNN as a discriminator? That is a good question: there are special sections on that later.

Use Cases

Best For

  • Experimenting with GANs for financial time-series prediction
  • Integrating multiple data sources (e.g., news sentiment, technical indicators) into stock forecasts
  • Applying reinforcement learning for hyperparameter optimization in neural networks
  • Studying LSTM-CNN architectures for sequential data generation
  • Learning feature engineering and selection techniques in quantitative finance
  • Building educational projects on AI-driven stock market analysis

Not Ideal For

  • Live trading systems requiring real-time, low-latency predictions
  • Teams without access to high-performance GPU clusters for training
  • Projects needing explainable AI for regulatory compliance or stakeholder trust
  • Individuals seeking a plug-and-play solution for multiple stocks without deep customization

Pros & Cons

Pros

Multi-Source Data Integration

Combines historical trading data, technical indicators, BERT sentiment analysis, Fourier transforms, and correlated assets, as detailed in Sections 3.1-3.5, to capture diverse market signals.

Advanced GAN Architecture

Uses an LSTM as generator and CNN as discriminator with Wasserstein GAN and Metropolis-Hastings GAN for stability, explained in Sections 4.2 and 4.4, enhancing time-series generation.

Sophisticated Hyperparameter Optimization

Applies Bayesian optimization with Gaussian processes and reinforcement learning (Rainbow, PPO) to tune GAN parameters, as described in Section 4.6, reducing manual tuning effort.

Rigorous Feature Engineering

Employs stacked autoencoders for high-level feature extraction, XGBoost for importance analysis, and statistical checks for data quality, outlined in Sections 3.7-3.8, improving model robustness.

Cons

Outdated Implementation

The notebook was created in January 2019 and uses MXNet, which has declining support compared to modern frameworks like PyTorch, leading to potential compatibility and maintenance issues.

High Computational Demands

Training involves GANs with reinforcement learning on multiple GPUs, as noted in the introduction, making it inaccessible for users without substantial hardware resources.

Limited Generalizability

Focused solely on Goldman Sachs stock with hardcoded data sources, requiring significant modification to adapt to other assets, as acknowledged in the data preparation sections.

Unproven Practical Performance

Lacks extensive backtesting or real-world validation metrics; the results are primarily illustrative, raising doubts about its effectiveness in live trading environments.

Frequently Asked Questions

Quick Stats

Stars5,581
Forks1,885
Contributors0
Open Issues299
Last commit11 months ago
CreatedSince 2019

Tags

#mxnet#time-series-forecasting#bayesian-optimization#cnn#feature-engineering#sentiment-analysis#stock-prediction#reinforcement-learning#lstm#generative-adversarial-network

Built With

B
BERT
X
XGBoost
P
Python
M
MXNet

Included in

AI in Finance5.6k
Auto-fetched 17 hours ago

Related Projects

FinRLFinRL

FinRL®: Financial Reinforcement Learning. 🔥

Stars15,795
Forks3,438
Last commit11 days ago
trump2cashtrump2cash

A stock trading bot powered by Trump tweets

Stars6,528
Forks862
Last commit3 years ago
Ensemble-StrategyEnsemble-Strategy

FinRL-X: An AI-Native Modular Infrastructure for Quantitative Trading

Stars3,474
Forks1,037
Last commit2 months ago
PersonaePersonae

📈 Personae is a repo of implements and environment of Deep Reinforcement Learning & Supervised Learning for Quantitative Trading.

Stars1,408
Forks341
Last commit7 years ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub