Grow a decision tree from training records. At every node the algorithm either stops with a leaf or picks the attribute test with the lowest weighted Gini index, then repeats the procedure on each child.
Gini(t) = 1 − Σj p(j | t)², and for a split into k children, Ginisplit = Σi (ni / n) × Gini(i).
Uses the finished tree and highlights the path the record follows.