🌳
Decision Tree: 20 Questions
The dashed box shows the region being split next — the one a real tree would pick first. Choose a feature (X or Y) and a threshold to divide it, aiming for a pure tree in as few questions as possible.
🧩 Intermediate
~2 min
Concept: Decision Trees
Puzzle 1 of 2
Split the highlighted (dashed) region until every leaf is a single color.
📌 Gini impurity
0 = perfectly pure region (one class only). 0.5 = a fully mixed 50/50 region. A good split makes the weighted average impurity of the two children as low as possible.