Fitting a Decision Tree (CART)
At each node:
- list all possible rules (for a continuous feature, one per midpoint of
consecutive sorted values),
- score every rule and pick the best,
- split the data through it, and
- repeat on both halves until a stop condition is met.
criterion score of every candidate rule