Spaces:
Sleeping
Sleeping
Commit ·
cf2fcbd
1
Parent(s): 54de943
Initial folder structure created
Browse files- .gitignore +10 -0
- .python-version +1 -0
- README.md +24 -12
- data/raw/WA_Fn-UseC_-Telco-Customer-Churn.csv +0 -0
- main.py +6 -0
- pyproject.toml +17 -0
- uv.lock +0 -0
.gitignore
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Python-generated files
|
| 2 |
+
__pycache__/
|
| 3 |
+
*.py[oc]
|
| 4 |
+
build/
|
| 5 |
+
dist/
|
| 6 |
+
wheels/
|
| 7 |
+
*.egg-info
|
| 8 |
+
|
| 9 |
+
# Virtual environments
|
| 10 |
+
.venv
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.12
|
README.md
CHANGED
|
@@ -1,12 +1,24 @@
|
|
| 1 |
-
---
|
| 2 |
-
title: Telco Churn Predictor
|
| 3 |
-
emoji: 🔥
|
| 4 |
-
colorFrom: gray
|
| 5 |
-
colorTo: pink
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 6.11.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
---
|
| 11 |
-
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Telco Churn Predictor
|
| 3 |
+
emoji: 🔥
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: pink
|
| 6 |
+
sdk: gradio
|
| 7 |
+
sdk_version: 6.11.0
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# Customer Churn Prediction
|
| 13 |
+
|
| 14 |
+
A machine learning model to predict the likelihood of customer churn in the telecom industry.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
- **FastAPI Backend**: High-performance REST API for programmatic access.
|
| 18 |
+
- **Gradio UI**: User-friendly web interface for manual testing.
|
| 19 |
+
- **XGBoost Model**: Trained on historical customer data for high accuracy.
|
| 20 |
+
|
| 21 |
+
## Dataset used
|
| 22 |
+
- Telco Customer Churn (from Kaggle)
|
| 23 |
+
|
| 24 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
data/raw/WA_Fn-UseC_-Telco-Customer-Churn.csv
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
main.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def main():
|
| 2 |
+
print("Hello from churn!")
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
if __name__ == "__main__":
|
| 6 |
+
main()
|
pyproject.toml
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "churn"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = "Add your description here"
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.12"
|
| 7 |
+
dependencies = [
|
| 8 |
+
"lightgbm>=4.6.0",
|
| 9 |
+
"matplotlib>=3.10.8",
|
| 10 |
+
"mlflow>=1.27.0",
|
| 11 |
+
"optuna>=4.8.0",
|
| 12 |
+
"pandas>=3.0.2",
|
| 13 |
+
"scikit-learn>=1.8.0",
|
| 14 |
+
"seaborn>=0.13.2",
|
| 15 |
+
"statsmodels>=0.14.6",
|
| 16 |
+
"xgboost>=3.2.0",
|
| 17 |
+
]
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|