How ayub-datascience/customer-churn-prediction works
This repository is a notebook-based customer-churn classification project. Its documented workflow moves from dataset cleaning and exploration through stratified splitting and preprocessing to training four classifiers, evaluating them with recall-focused metrics and 10-fold cross-validation, and selecting the Decision Tree model. The tree also includes saved models, predictions, and metric tables. Source excerpts were unavailable, so relationships below rely on the README’s workflow description; notebook-internal calls and artifact-generation details cannot be verified.
Main entry points: 06_Training_and_Testing.ipynb Classifier training · 07_Cross_Validation_Method.ipynb 10-fold validation · 05_Creating_Pipelines_for_Preprocessing.ipynb Preprocessing pipeline · cleaned_customer_churn_data.csv Cleaned data
Components 22
Data analysis
- Customer data
customer_churn_data.csv - Clean dataset
02_Understanding_and_Cleaning_the_Dataset.ipynb - Cleaned data
cleaned_customer_churn_data.csv - Churn exploration
03_Exploratory_Data_Analysis.ipynb
Model development
- Stratified split
04_Splitting_the_Data_into_Train_and_Test.ipynb - Training data
training_data.csv - Testing data
testing_data.csv - Preprocessing pipeline
05_Creating_Pipelines_for_Preprocessing.ipynb - Prepared training data
training_data_preprocessed.csv - Prepared testing data
testing_data_preprocessed.csv - Classifier training
06_Training_and_Testing.ipynb - Logistic regression
06_Training_and_Testing.ipynb - Decision tree
06_Training_and_Testing.ipynb - Random forest
06_Training_and_Testing.ipynb - Gradient boosting
06_Training_and_Testing.ipynb
Evaluation and selection
- 10-fold validation
07_Cross_Validation_Method.ipynb - Model metrics
metrics - Recall-based selection
07_Cross_Validation_Method.ipynb
Saved outputs
- Trained models
models - Predictions
predictions
Other components
- Project analyst
- Retention decision-maker
Connections 28
- Project analyst → Customer data: inspects
README.md - Customer data → Clean dataset: cleaned by
README.md - Clean dataset → Cleaned data: produces
README.md - Cleaned data → Churn exploration: explored in
README.md - Cleaned data → Stratified split: split into
README.md - Stratified split → Training data: produces
README.md - Stratified split → Testing data: produces
README.md - Training data → Preprocessing pipeline: transformed by
README.md - Testing data → Preprocessing pipeline: transformed by
README.md - Preprocessing pipeline → Prepared training data: prepares
README.md - Preprocessing pipeline → Prepared testing data: prepares
README.md - Classifier training → Logistic regression: trains
README.md - Classifier training → Decision tree: trains
README.md - Classifier training → Random forest: trains
README.md - Classifier training → Gradient boosting: trains
README.md - Prepared training data → Classifier training: used for training
README.md - Prepared testing data → Classifier training: used for testing
README.md - Decision tree → 10-fold validation: validated by
README.md - Logistic regression → 10-fold validation: validated by
README.md - Random forest → 10-fold validation: validated by
README.md - Gradient boosting → 10-fold validation: validated by
README.md - Classifier training → Model metrics: evaluated with
README.md - 10-fold validation → Recall-based selection: compared by recall
README.md - Model metrics → Recall-based selection: informs
README.md - Recall-based selection → Decision tree: selects
README.md - Classifier training → Trained models: saves
README.md - Classifier training → Predictions: produces
README.md - Predictions → Retention decision-maker: supports retention decisions
README.md