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.