A machine learning-powered web application that forecasts sales using XGBoost and ARIMA and Django
- ML-Powered: Predicts sales using a trained
XGBoost Regressor and ARIMA - Django Web App: Backend powered by Django framework
- Feature Importance: Used Mysql to store the values predicted values generated by the model
- Feature Importance: Auto-generated plots of feature impact
- Sales Denormalization: Uses pre-saved
scalersto return original sales values - Modern UI: Responsive interface (supports Dark Knight theme 😎)
- Model: XGBoost Regressor
- Scaler: MinMaxScaler or StandardScaler (via
joblib) - Target:
Item_Outlet_Sales - Features: Encoded and cleaned dataset columns
sales_forecasting/ ├── app/ │ ├── templates/ │ │ └── view/ │ │ └── predict.html │ ├── views.py │ ├── urls.py │ └── ... ├── static/ │ └── images/ │ └── dark_knight.jpg ├── model/ │ ├── xgboost_model.pkl │ ├── sales_scaler.pkl │ └── data.csv ├── train.py ├── utils.py ├── requirements.txt └── README.md
- Clone the Repository
git clone https://github.com/yourusername/sales-forecasting-app.git cd sales-forecasting-app - Create & Activate Virtual Environment (optional)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate - Install Dependencies
pip install -r requirements.txt - Run the App
Visit: http://127.0.0.1:8000/
python manage.py runserver
Pull requests are welcome! For major changes, open an issue to discuss what you'd like to improve.
📧 Email: shubhrai598@gmail.com
💻 GitHub: github.com/shubh-gitpush


