How kothurigoutham/churn_prediction_c1 works
This is a telecom churn ML project with a Streamlit interface as its main user-facing product. Users enter customer details and receive a churn label, probability, risk level, and SHAP explanation; the app also presents dataset summaries and model insights. The training path cleans the Telco dataset, compares and tunes classifiers, and saves a reusable pipeline and reports. The README documents a separate notebook-based analysis workflow. Source excerpts show the app, training, preprocessing, and explanation modules; notebook internals were not sampled.
Main entry points: app.py Churn app · train.py Train and tune · telco_churn.csv Telco dataset · churn_pipeline.pkl Saved pipeline
Components 10
Streamlit experience
- Churn app
app/app.py
Model workflow
- SHAP explanations
src/explain.py - Data preprocessing
src/preprocessing.py - Train and tune
src/train.py - Prediction helper
src/predict.py
Data and artifacts
- Telco dataset
data/primary/telco_churn.csv - Saved pipeline
models/churn_pipeline.pkl - Model reports
models
Notebook analysis
- Churn analysis
notebooks/churn_analysis.ipynb
Other components
- Analyst
Connections 11
- Analyst → Churn app: enters details
README.md - Churn app → Saved pipeline: loads pipeline
README.md - Churn app → Telco dataset: loads background data
app/app.py - Churn app → SHAP explanations: requests explanations
app/app.py - Churn app → Model reports: reads model insights
app/app.py - Train and tune → Telco dataset: loads data
src/train.py - Train and tune → Data preprocessing: uses cleaning and transforms
src/train.py - Train and tune → Saved pipeline: saves selected model
src/train.py - Train and tune → Model reports: writes metrics and summaries
src/train.py - Churn analysis → Telco dataset: analyzes dataset
README.md - Churn analysis → Saved pipeline: saves final pipeline
README.md