alistairewj/tree-prediction-tutorial

Pruning code does not update graphviz

Opened this issue · 0 comments

The pruning code uses a hack for child nodes by setting left/right values to -1 (since it cannot delete nodes due to immutability). The graphviz display seems to ignore this, so pruned trees appear as the original tree, even though application of the model ignores the bottom leaves.