How 5hraddhab/customer-churn-ml-system works
This is a Streamlit customer-churn analysis and retention application. Users load a customer dataset, map its churn target, inspect data quality, train and compare classifiers, then score individual customers or batches and review risk drivers and retention actions. The README also documents adaptive visual analytics and industry-specific recommendations. The graph follows documented module responsibilities and shown calls; where application wiring is documented but its relevant source lines were not excerpted, edges cite the README rather than implying the source was inspected.
Main entry points: app.py Streamlit Dashboard · predict.py Customer Scoring · train_model.py Model Training · data_loader.py Dataset Loader
Components 12
User Application
- Streamlit Dashboard
app.py
Data Preparation
- Customer Dataset
Data/train.csv - Dataset Loader
src/data_loader.py - Quality Audit
src/data_loader.py - Preprocessing Pipeline
src/data_preprocessing.py
Modeling and Inference
- Model Training
src/train_model.py - Trained Model Bundle
models/best_model.joblib - Customer Scoring
src/predict.py - Risk Tiers and Drivers
src/predict.py
Insights and Retention
- Visual Analytics
src/analytics.py - Retention Playbooks
src/recommendations.py
Other components
- Business User
Connections 14
- Business User → Streamlit Dashboard: uses
README.md - Streamlit Dashboard → Dataset Loader: loads data
README.md - Customer Dataset → Dataset Loader: provides data
src/data_loader.py - Streamlit Dashboard → Quality Audit: requests audit
app.py - Streamlit Dashboard → Model Training: starts training
README.md - Model Training → Preprocessing Pipeline: fits and transforms
src/train_model.py - Model Training → Trained Model Bundle: saves bundle
README.md - Streamlit Dashboard → Customer Scoring: requests scoring
README.md - Customer Scoring → Preprocessing Pipeline: transforms inputs
src/predict.py - Customer Scoring → Trained Model Bundle: scores with
README.md - Customer Scoring → Risk Tiers and Drivers: derives risk and drivers
src/predict.py - Streamlit Dashboard → Visual Analytics: renders visualizations
README.md - Streamlit Dashboard → Retention Playbooks: requests actions
README.md - Risk Tiers and Drivers → Retention Playbooks: informs actions
README.md