Système intelligent de prédiction de churn client pour environnement SaaS/Télécom.
Télécharger customer_churn.csv depuis Kaggle :
https://www.kaggle.com/datasets/miadul/customer-churn-prediction-business-dataset
Placer le fichier dans data/raw/customer_churn.csv.
pip install -r requirements.txtpython src/train.pystreamlit run dashboard/app.pycd api && uvicorn main:app --reload --port 8000
# Documentation : http://localhost:8000/docsprojet_churn/
├── data/
│ ├── raw/ ← customer_churn.csv
│ └── processed/ ← train.csv, test.csv
├── notebooks/
│ ├── 01_eda.ipynb
│ ├── 02_preprocessing.ipynb
│ ├── 03_modeling.ipynb
│ └── 04_evaluation.ipynb
├── src/
│ ├── preprocessing.py
│ ├── train.py
│ ├── evaluate.py
│ └── models/
│ ├── logistic_model.py
│ ├── random_forest_model.py
│ ├── xgboost_model.py
│ └── mlp_model.py
├── models/ ← modèles sérialisés
├── dashboard/app.py ← Streamlit (4 pages)
├── api/
│ ├── main.py ← FastAPI
│ └── schemas.py
└── reports/figures/ ← graphiques exportés
| Modèle | ROC-AUC | F1-Score |
|---|---|---|
| Régression Logistique | - | - |
| Random Forest | - | - |
| XGBoost | - | - |
| MLP (Deep Learning) | - | - |
Remplir après entraînement avec les résultats réels.
- Placer
customer_churn.csvdansdata/raw/ python src/train.py— entraîne les 4 modèlesstreamlit run dashboard/app.py— lance le dashboarduvicorn api.main:app --reload— lance l'API