Schematex
decisiontree·CART / scikit-learn plot_tree convention·saas, product·complexity 4/3·since v0.2.0

Subscriber renewal classifier — three-class churn tree

A trained classification tree predicting whether a subscriber renews, downgrades or cancels — split rules, sample counts, per-class counts and Gini impurity on every node, seven leaves.

For the data scientist explaining a churn model

Open in Playground →
schematex§ source-defined
Subscriber outcome at renewal Decision tree (ml mode) with 13 nodes and 12 edges Subscriber outcome at renewal renews downgrades cancels True False True False True False True False True False True False Contract = month-to-month 5,000 samples gini 0.51 3280 770 950 Tenure ≤ 12 months 2,600 samples gini 0.62 1280 480 840 Support calls (90 days) ≤ 2 1,300 samples gini 0.59 500 160 640 RENEWS 780 samples gini 0.59 420 110 250 CANCELS 520 samples gini 0.41 80 50 390 Monthly charge ≤ $70 1,300 samples gini 0.56 780 320 200 RENEWS 700 samples gini 0.34 560 70 70 DOWNGRADES 600 samples gini 0.65 220 250 130 Monthly charge ≤ $90 2,400 samples gini 0.29 2000 290 110 RENEWS 1,900 samples gini 0.18 1710 120 70 Data used per month ≤ 20 GB 500 samples gini 0.54 290 170 40 DOWNGRADES 220 samples gini 0.51 60 140 20 RENEWS 280 samples gini 0.31 230 30 20
18 lines · 1217 chars
✓ parsed·0.0 ms·0 B
100%

Scenario

A classification tree that predicts what a subscriber does at renewal: renews, downgrades to a cheaper plan, or cancels. The features are plain business facts — contract type, tenure, support calls, monthly charge and data use — so the model can be explained to people who do not build models. The tree is three levels deep, with six splits and seven leaves. The counts are illustrative but add up consistently.

Annotation key

How to read

Start at the top and follow the branch where the rule holds (true) or fails (false). The first question is the contract: month-to-month subscribers go down the true branch, where tenure and support calls or monthly charge separate them further. The largest leaf is annual-contract subscribers paying $90 or less — 1,900 of them, 90% renewing. Some leaves are weak predictions: the "downgrades" leaf for longer-tenure month-to-month subscribers paying more than $70 holds only 42% downgraders. Reading the class counts, not just the label, shows how confident each prediction is.

Decision tree syntax