Spaces:
Sleeping
Sleeping
File size: 1,485 Bytes
014c608 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | ---
title: Sales Forecaster - Kaggle Sticker Challenge
emoji: π
colorFrom: blue
colorTo: green
sdk: streamlit
sdk_version: 1.32.0
app_file: app.py
pinned: false
python_version: "3.10"
license: gpl-3.0
---
# Sticker Sales Prediction Project
## π Project Overview
This project predicts the sales volume (`num_sold`) for various Kaggle-branded products across different stores and countries. It was developed as part of a career transition into **Data Science**, focusing on Time-Series regression and feature engineering.
## π Technical Highlights
- **Model:** XGBoost Regressor.
- **Metric:** Achieved a **6.42% MAPE** (Mean Absolute Percentage Error) on the validation set.
- **Key Strategy:** Utilized **Log Transformation** ($y = \log(1+x)$) to handle the right-skewed distribution of sales data, which improved the MAPE from 16% to 6.4%.
- **Feature Engineering:** Extracted temporal features such as `day_of_week`, `is_weekend`, and `month` to capture seasonality and the "Weekend Effect."
## π File Structure
- `app.py`: Streamlit application code.
- `xgboost_model.json`: Pre-trained XGBoost model.
- `model_columns.pkl`: List of features used during training (to ensure input alignment).
- `requirements.txt`: Python dependencies.
## π οΈ Local Setup
To run this project locally with **Python 3.10**:
1. Clone the repository.
2. Create a virtual environment:
```bash
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate |