๐ Stars | ๐ด Forks | ๐ Issues | ๐ Open PRs | ๐ Closed PRs | ๐ ๏ธ Languages | โ Contributors |
---|---|---|---|---|---|---|
Check the project structure here Project Structure
- ๐ GitHub Repository Stats
- โจ Project Structure
- ๐ Table of Contents
- ๐ Overview
- ๐ ๏ธ Features
- ๐ Algorithms Used
- ๐ Dataset
- ๐ Project Structure
- ๐ How to Run
main.py
- ๐ Results
- ๐ Performance Metrics
- ๐ง Optimization Techniques
- ๐ฎ Future Work
- ๐ Conclusion
- โ๏ธ Author
- ๐ค Contributing
- ๐ Our Valuable Contributors
- ๐ License
- ๐ฑ Connect with Us
This project aims to predict the stock prices of The State Bank of India (SBI) using various machine learning regression algorithms. By leveraging historical stock data sourced from Yahoo Finance, this project provides insights into the performance of different regression models in stock price prediction for SBI.
The primary objective is to compare model accuracy and performance metrics, such as RMSE, MAE, and MAPE, across multiple algorithms, ultimately identifying the most suitable regression approach for stock price forecasting.
- Utilizes various regression algorithms for stock price prediction.
- Dataset collected from Yahoo Finance for The State Bank Of India.
We implemented the following regression algorithms for stock price prediction:
๐ค Algorithm | ๐ Description |
---|---|
Linear Regression | A basic regression algorithm. |
Support Vector Regression (SVR) | Effective for non-linear relationships. |
Random Forest | Ensemble learning method using decision trees. |
Gradient Boosting Models (GBM) | Sequentially builds models to improve predictions. |
Extreme Gradient Boosting (XGBoost) | Advanced boosting technique with regularization. |
AdaBoostRegressor | Combines multiple weak learners. |
Decision Tree | Simple yet effective model based on tree structure. |
KNeighborsRegressor (KNN) | Predicts based on nearest neighbors' average. |
Artificial Neural Networks (ANN) | Mimics human brain for complex data patterns. |
Long Short Term Memory (LSTM) | Suitable for time-series prediction. |
The dataset used in this project is sourced from Yahoo Finance and includes historical stock data for The State Bank Of India. It comprises relevant features such as:
- ๐ Open prices
- ๐ High prices
- ๐ Low prices
- ๐ต Close prices
- ๐ฆ Volume
๐ data/ # Contains the dataset files. ๐ notebooks/ # Jupyter notebooks with the code for data exploration, preprocessing, and model training. ๐ src/ # Python source code for the project. ๐ requirements.txt # List of dependencies needed to run the project.
Steps: 1.If Flask is not installed, install it:
pip install flask
2.Install dependencies using:
pip install -r requirements.txt
3.Run the Flask app:
python main.py
The sequence of all the algorithms used is as follows:
- Linear Regression
- SVR
- Random Forest
- Gradient Boosting Models (GBM)
- Extreme Gradient Boosting (XGBoost)
- AdaBoostRegressor
- Decision Tree
- KNeighborsRegressor (KNN)
- Artificial Neural Networks (ANN)
- Long Short Term Memory (LSTM)
The Root Mean Square Error (RMSE) of all the following 10 Regression Algorithms is provided below:
The Mean Absolute Error (MAE) of all the following 10 Regression Algorithms is provided below:
The Mean Absolute Percentage Error (MAPE) of all the following 10 Regression Algorithms is provided below:
We have applied several Intel-specific optimization techniques to enhance the performance of our models. For detailed information, please refer to the Optimization Techniques document.
- Combine this data with stock sentiment data to enhance prediction accuracy.
- Utilize clustering algorithms to develop a buy/sell recommendation system.
Among the models assessed, AdaBoostRegressor and LSTM emerged as the top performers, showcasing low RMSE, MAE, and MAPE values. These metrics suggest that these algorithms effectively capture the underlying trends and patterns in the stock price data, making them reliable for prediction tasks.
While some models demonstrated solid predictive capabilities, others, such as Support Vector Regression (SVR) and KNeighborsRegressor, recorded higher RMSE and MAE values. This indicates that these algorithms may yield acceptable predictions on average but are susceptible to significant errors in certain scenarios, emphasizing the need for careful model selection for stock price predictions.
Rohit Dubey ๐จโ๐ป
We welcome contributions to this project! Please see our Contributing.md file for guidelines on how to get involved.
We are incredibly grateful for your dedication and hard work. Your contributions have been invaluable in making this project a success. Thank you for being a part of our journey!
Let's continue to build great things together! ๐
This project is licensed under the MIT License.