@glouppe looking at the changes it strikes me that the change doesn't effect results: changing ``impurity`` to ``impurity_left`` should effect the is_leaf check in ``_add_split_node`` and how the impurity improvement is calculated in the splitter. Anyhow, using ``record.impurity`` is definitely not correct - thanks for fixing this!