Spaces:
Sleeping
Sleeping
|
Download README.md from basaktamer/Predicting_Sticker_Sales: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/spaces/basaktamer/Predicting_Sticker_Sales/resolve/main/README.md
- Command line
-
hf download hf://spaces/basaktamer/Predicting_Sticker_Sales/README.md
-
curl -L -o README.md https://huggingface.co/spaces/basaktamer/Predicting_Sticker_Sales/resolve/main/README.md
1.49 kB
| 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 |