Spaces:
Sleeping
Sleeping
|
Download README.md from EnYa32/SalesPrediction: direct link, hf CLI and curl.
- Browser
- Download file 1.4 kB
-
https://huggingface.co/spaces/EnYa32/SalesPrediction/resolve/main/README.md
- Command line
-
hf download hf://spaces/EnYa32/SalesPrediction/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EnYa32/SalesPrediction/resolve/main/README.md
1.4 kB
| title: SalesPrediction | |
| emoji: π | |
| colorFrom: red | |
| colorTo: red | |
| sdk: docker | |
| app_port: 8501 | |
| tags: | |
| - streamlit | |
| pinned: false | |
| short_description: Streamlit app predicting sales using XGBoost. | |
| license: mit | |
| # π Advertising Sales Prediction | |
| This is a simple Streamlit app that predicts product sales using a trained **XGBoost regression model**. | |
| The model uses three inputs: **TV**, **Radio**, and **Newspaper** advertising budgets. | |
| --- | |
| ## π Live App | |
| You can test the model directly on HuggingFace Spaces. | |
| Enter the budgets and click **Predict Sales** to see the result. | |
| --- | |
| ## π§ Project Summary | |
| This project is part of my regression assignment. | |
| I trained multiple models and selected **XGBoost** because it gave the best performance. | |
| **Model Performance:** | |
| - RΒ²: ~0.95 | |
| - RMSE: ~1.14 | |
| - MAE: ~0.87 | |
| The final model is saved as `xgb_model.json` and loaded inside the app. | |
| --- | |
| ## π₯οΈ How the App Works | |
| 1. Enter values for TV, Radio, and Newspaper budgets | |
| 2. Click **Predict Sales** | |
| 3. The app displays the predicted number of sales | |
| 4. A simple Plotly chart shows how predictions change when the TV budget varies | |
| --- | |
| ## π Files in This Space | |
| βββ README.md | |
| βββ requirements.txt | |
| βββ src/ | |
| βββ streamlit_app.py | |
| βββ xgb_model.json | |
| yaml | |
| Code kopieren | |
| --- | |
| ## π¦ Requirements | |
| streamlit | |
| xgboost | |
| scikit-learn | |
| numpy | |
| pandas | |
| plotly |