Empowering smarter investment decisions through Machine Learning and Data-Driven Insights.
๐ง Overview
StockVerse is a powerful machine learningโbased project designed to analyze and predict stock market trends using both classification and regression models. It processes NIFTY 50 historical data to predict:
๐ Whether the stock price will go UP or DOWN
๐ฐ The next dayโs closing price
Built with Streamlit, scikit-learn, and Pandas, it provides an intuitive dashboard for visualization and live prediction.
๐ Features
โ Dual Machine Learning Models
Logistic Regression โ Predicts movement direction (Up/Down)
Linear Regression โ Predicts next-day closing price
โ Streamlit Dashboard
Real-time prediction from user input
Visualized recent stock trends
โ Data Engineering Pipeline
Cleans and processes raw NIFTY50 data
Handles missing values and scaling
โ Modular Structure
Separate scripts for training, prediction, and UI
โ Open for Contribution
Anyone can fork this repo and enhance the features further
๐งฉ Tech Stack Component Technology Language Python 3.x Framework Streamlit ML Libraries scikit-learn, Pandas, NumPy, Joblib Data Source NIFTY50 Historical Stock Data Version Control Git & GitHub ๐๏ธ Project Structure StockVerse/ โ โโโ data/ โ โโโ engineered_stock_data.csv โ โโโ engineered_stock_data_sample.csv โ โโโ models/ โ โโโ logistic_model.pkl โ โโโ linear_model.pkl โ โโโ src/ โ โโโ app.py # Streamlit dashboard โ โโโ model_trainer.py # Model training script โ โโโ requirements.txt โโโ README.md โโโ .gitignore
โ๏ธ Installation and Setup 1๏ธโฃ Clone the Repository git clone https://github.com//StockVerse.git cd StockVerse
2๏ธโฃ Create and Activate Virtual Environment python -m venv venv venv\Scripts\activate # On Windows
source venv/bin/activate # On Mac/Linux
3๏ธโฃ Install Dependencies pip install -r requirements.txt
4๏ธโฃ Train the Models
(If you want to retrain with your dataset)
python src/model_trainer.py
5๏ธโฃ Run the Streamlit App streamlit run src/app.py
๐พ Model Files
After training, models are automatically saved to:
models/logistic_model.pkl models/linear_model.pkl
๐ Deployment
You can deploy this project easily using:
Streamlit Cloud
Render
Hugging Face Spaces
Just make sure your folder structure is preserved and your dataset (or sample dataset) is uploaded inside /data.
๐งฎ Example Predictions Input Features Logistic Output Linear Output RSI: 48, MA5: 1800, Volatility: 0.5 ๐ UP โน1834.76 RSI: 72, MA5: 420 ๐ DOWN โน409.22 ๐ ๏ธ Commands Reference Task Command Install dependencies pip install -r requirements.txt Run dashboard streamlit run src/app.py Train models python src/model_trainer.py Push changes git add . && git commit -m "update" && git push origin main ๐ค Contributing
We welcome all contributions! ๐ You can fork this repository and modify it to give it a better shape โ add new models, data sources, or improve visualization.
Steps to contribute:
Fork this repo
Create your feature branch
git checkout -b feature/NewFeature
Commit your changes
git commit -m "Added new feature"
Push to branch and open a Pull Request
git push origin feature/NewFeature
๐ฌ Contact
๐ง Developer: [Your Name or GitHub Profile] ๐ GitHub: https://github.com//StockVerse
๐ License: MIT
โญ If you like this project, give it a star on GitHub and share it with your community!
Letโs make StockVerse smarter together ๐