PolyMind is a machine learning-powered web application designed to help businesses forecast sales, predict demand, and implement intelligent dynamic pricing strategies. Built with Django and Streamlit, the project integrates advanced predictive models and dynamic dashboards to deliver actionable retail insights.
- ๐ฎ Sales Forecasting โ Predict future sales based on historical trends, calendar events, and business activity
- ๐ฆ Demand Prediction โ Estimate demand with features like promotions, seasonality, holidays, and store-specific data
- ๐ฐ Dynamic Pricing โ Recommend optimized prices that maximize revenue while respecting demand elasticity
- ๐ Interactive Website โ Django-powered interface for inputting parameters and retrieving predictions
- ๐ Streamlit Dashboards โ Visualize trends, forecasts, and pricing recommendations
- Backend: Django (Python Web Framework)
- Frontend: HTML, CSS, JavaScript, Bootstrap
- ML Libraries: XGBoost, Scikit-learn, Pandas, NumPy
- Dashboards: Streamlit
- Model Integration:
picklefor model serialization - Database: MySQL
- Visualization: Matplotlib, Seaborn
DEPI_Project/
โโโ deployment/ # Django project implementation
โ โโโ project/ # Django project files
โ โโโ manage.py # Django management script
โ
โโโ notebooks/ # Jupyter notebooks for development
โ โโโ Dynamic_Pricing.ipynb
โ โโโ Milestone_1_Data_Collection_Exploration_Preprocessing.ipynb
โ โโโ Milestone_2_Advanced_Data_Analysis_Feature_Engineering.ipynb
โ โโโ Milestone_3_Machine_Learning_Model_Development.ipynb
โ โโโ D_Dashboard.py # Dashboard implementation
โ
โโโ documentation/ # Project documentation
โ โโโ DEPI_Project_Presentation.pptx
โ โโโ Final_DEPI_Report.docx
โ โโโ Milestone_1.docx
โ โโโ Milestone_2.docx
โ โโโ Milestone_3.docx
โ โโโ Milestone_4.docx
โ
โโโ README.md # Project documentation
-
Prerequisites
- MySQL Server installed and running
- Python 3.8+
-
Clone the Repository
git clone https://github.com/MohamedAbdelhamid-22/DEPI_Project.git cd DEPI_Project -
Set Up Virtual Environment
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt pip install mysqlclient # MySQL database adapter for Python -
Database Configuration
- Create a MySQL database
- Update database settings in
deployment/project/settings.py:DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'your_db_name', 'USER': 'your_db_user', 'PASSWORD': 'your_db_password', 'HOST': 'localhost', 'PORT': '3306', } }
-
Run the Application
- For Django backend:
cd deployment python manage.py migrate python manage.py runserver
- For Django backend:
Connect with us on LinkedIn:
We welcome contributions! Please fork the repository and submit pull requests for any improvements or bug fixes.