Stockipy is a comprehensive project designed to scrape stock data, perform exploratory data analysis (EDA), and implement multiple machine learning models to predict stock closing prices. The project includes an LSTM, GRU, and ARIMA model to compare the accuracy and losses of each. The results are presented through a multipage Streamlit application.
- Data Scraping: Scrape stock data from various sources.
- Exploratory Data Analysis (EDA): Analyze the collected data for insights and trends.
- Machine Learning Models: Implement LSTM, GRU, and ARIMA models to predict stock closing prices.
- Model Comparison: Compare the accuracy and losses of each model.
- Streamlit Application: Interactive multipage Streamlit app to present data and predictions.
Watch the demo video below to see Stockipy in action:
Completion.mp4
-
Clone the repository:
git clone https://github.com/Ariyamandebnath/Stock-ipy cd stockipy
-
Create and activate a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
-
Locate to app folder:
cd app
-
Run the Streamlit application:
streamlit run app.py
Stockipy/
βββ analysis/
β βββ EDA.ipynb
βββ app/
β βββ pages/
| β βββ Analysis.py
| β βββ prediction.py
β βββ app.py
β βββ helper.py
βββ data/
β βββ temporary_Storage
βββ models/
β βββ ARIMA/
| β βββ arima.pkl
| β βββ AXIS_arima.pkl
| β βββ HDFC_arima.pkl
| β βββ SBIN_arima.pkl
β βββ GRU/
| β βββ AXIS_MODEL_GRU.keras
| β βββ HDFC_MODEL_GRU.keras
| β βββ SBIN_MODEL_GRU.keras
β βββ LSTM/
| β βββ StockPredictionModel_AXIS.keras
| β βββ StockPredictionModel_AXIS.keras
| β βββ StockPredictionModel_AXIS.keras
βββ predictions
β βββ ARIMA.ipynb
β βββ GRU.ipynb
β βββ LSTM.ipynb
βββ scraper
β βββ niftyScraper.py
βββ .gitignore
βββ requirements.txt
βββ README.md
- scraper.py: Script to scrape stock data from various sources.
- eda.py: Script to perform exploratory data analysis on the collected data.
- train_models.py: Script to train and evaluate LSTM, GRU, and ARIMA models.
- app.py: Streamlit application to present data and predictions.
Contributions are welcome! Please read the CONTRIBUTING.md
for guidelines on how to contribute to this project.
This project is licensed under the MIT License. See the LICENSE
file for details.