Customer Churn Prediction Pipeline

How well can we really predict churn?

A LightGBM model, evaluated honestly. Every number below is computed from the repo's 5,000-row sample, and the what-if scorer runs the real 100 trees in your browser.

Read this first. The saved model was trained on a 999,999-row dataset that is not in the repo, and its test AUC there was 0.635 (README). Here we only have a 5,000-row sample, possibly overlapping the training data, so the AUC below is likely optimistic. An AUC near 0.6 to 0.7 means the model ranks churners better than chance, but not sharply. F1 on a 9.7% base rate is low by construction.

Who gets contacted? top-k% campaign

Rank customers by score and contact the top k%. Evaluated on the 2,500 held-out rows.

ROC curve

Feature importance LightGBM gain, %

Churn rate by segment whole 5,000-row sample

Calibration raw score vs observed

The saved model's raw scores average while only of customers churn, so they are not probabilities. A Platt calibrator fitted on the other half of the sample fixes that.

What-if scoring runs in your browser

Change a customer and the real model scores them, then the calibrator turns the score into a probability. Unlisted fields stay at sample averages.