How divanshusingh-ds/customer-churn-ml works
ChurnGuard AI is a Streamlit application for turning customer attributes into churn predictions, risk levels, and retention guidance. The documented workflow also covers data analysis, preprocessing, model comparison and tuning, evaluation, and explainability. In the available source, app.py contains the interface, prediction logic, and model/artifact handling; README documents the broader analysis workflow, but its referenced notebook is absent from the tree. Some detailed analysis-stage connections therefore remain undocumented here.
Main entry points: app.py Streamlit Interface · churn_model.pkl Trained Model · model_comparison.csv Model Comparison · feature_importance.csv Feature Importance
Components 15
Data and Modeling
- Data Preparation
- Churn Analysis
- Model Training
- Model Evaluation
- Feature Explainability
Prediction App
- Streamlit Interface
app.py - Risk Prediction
app.py - Retention Guidance
app.py
Data and Model Assets
- Customer Dataset
data/Telco-Customer-Churn.csv - Trained Model
models/churn_model.pkl - Model Comparison
models/model_comparison.csv - Confusion Matrix
models/confusion_matrix.json - ROC Curve Data
models/roc_curve.csv - Feature Importance
models/feature_importance.csv
Other components
- Business User
Connections 17
- Business User → Streamlit Interface: enters profile
README.md - Streamlit Interface → Risk Prediction: submits profile
app.py - Risk Prediction → Trained Model: loads and predicts
app.py - Risk Prediction → Retention Guidance: classifies risk
README.md - Customer Dataset → Data Preparation: provides records
README.md - Data Preparation → Churn Analysis: prepares for analysis
README.md - Churn Analysis → Model Training: informs features
README.md - Model Training → Model Evaluation: evaluated by
README.md - Model Evaluation → Model Comparison: records comparison
README.md - Model Training → Trained Model: saves model
README.md - Model Training → Feature Explainability: supports analysis
README.md - Feature Explainability → Feature Importance: generates importance
README.md - Streamlit Interface → Confusion Matrix: reads results
app.py - Streamlit Interface → ROC Curve Data: reads curve data
app.py - Streamlit Interface → Feature Importance: reads importance
app.py - Streamlit Interface → Model Comparison: shows comparison
README.md - Retention Guidance → Business User: supports action
README.md