Decision Tree Walkthrough: Greedy Splits with Gini Impurity

Step through how a CART-style decision tree selects splits using weighted Gini, with full per-node counts, impurities, and gains. Override the split at each step to compare outcomes and see how the tree shape and leaf purity change.

Walkthrough

Step 1 / 8
Tip: use Previous to go back and pick a different split.

Dataset

All rows