Skip to content

Indecre/stock-predictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ˆ Stock Predictor

A machine learning model that predicts stock prices using a regression approach. This project achieves an 86% regression accuracy within a 0.1 tolerance using a deep learning architecture with:

  • ReLU activation
  • Mean Squared Scaled (MSS) loss function
  • Adam optimizer

πŸš€ Features

  • Predicts stock prices based on historical data
  • Uses a regression model trained on time-series inputs
  • High performance with 86% accuracy (tolerance ≀ 0.1)
  • Modular and extensible codebase

🧠 Model Details

  • Model Type: Regression (Deep Learning)
  • Activation Function: ReLU
  • Loss Function: MSS (Mean Squared Scaled)
  • Optimizer: Adam
  • Evaluation Metric: Accuracy within 0.1 tolerance

πŸ“Š Dataset

The model is trained on a dataset of historical stock prices. The dataset includes:

  • Open, High, Low, Close prices
  • Volume
  • Optional: Technical indicators like SMA, EMA, RSI

πŸ“Œ Note: Please ensure your data is normalized/scaled appropriately before training.


Improvements

Planned and possible future enhancements:

πŸ”„ LSTM/Transformer Models: Improve temporal awareness with sequence models

πŸ“Š Advanced Metrics: Include MAPE, RMSE, RΒ² score

🌐 Real-Time Data: Integrate Yahoo Finance, Alpha Vantage, or Polygon APIs

πŸ§ͺ Hyperparameter Tuning: Add Optuna or grid/random search

🧰 Technical Indicators: MACD, Bollinger Bands, RSI, etc.

πŸ“‰ Backtesting Module: Evaluate predictions with historical strategy tests

πŸ“Ί Visualization UI: Build dashboard with Streamlit or Dash

πŸ“¦ Deployment: Export and serve via Flask, FastAPI, or ONNX

🧠 Ensemble Learning: Blend multiple models for robustness

πŸ” Checkpoints: Add save/load training checkpoints

πŸ§ͺ Unit Tests: Ensure stability and correctness βš™οΈ AutoML Support: Plug in with H2O, Auto-sklearn, etc.


Improvements done:

  • using advanced evaluation metrics like MSE, MAE and R2

🀝 Contributing Contributions are welcome! To contribute, fork the repo, make changes, and submit a pull request. For major feature proposals, please open an issue first.

πŸ“„ License This project is licensed under the MIT License.

πŸ’¬ Contact For questions, suggestions, or collaborations: πŸ“§ [email protected]

πŸ“¦ Installation

git clone https://github.com/Indecre/stock-predictor/edit/main/README.md
cd stock-predictor

About

Stock prediction Model using Regression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published