Introduction
Decision trees are a cornerstone of machine learning but are highly susceptible to overfitting, where the model captures noise in the training data rather than generalizable patterns. Traditional solutions involve post-pruning, such as the pessimistic pruning algorithm used in C4.5. However, these methods are often based on heuristics that may not identify the most accurate subtree. This research explores whether a "sweet spot" exists during the tree-building process that standard pruning methods overshoot.
Methodology: Intermediate Decision Trees
The author defines an Intermediate Decision Tree (IDT) as any subtree produced during a breadth-first traversal of the internal nodes of a decision tree. By examining every stage of growth, we can identify subtrees that might be more accurate than the final unpruned or pruned versions.
The study evaluates four specific tree configurations:
- Full Tree (FT): The complete, unpruned tree.
- Pruned Tree (PT): The tree after standard C4.5 post-pruning.
- Intermediate Full Tree (IFT): The subtree with the lowest error found during a breadth-first traversal of the Full Tree.
- Intermediate Pruned Tree (IPT): The best subtree found during the breadth-first traversal of the Pruned Tree.
To ensure robust comparison, C4.5 parameters (e.g., minimum leaf weight and confidence factors) were optimized using a hill-climbing tuner across 50 trials per dataset.
Experimental Evaluation
The methodology was tested on 66 databases from the UCI Machine Learning Repository, covering medical (e.g., breast cancer, diabetes), technical (e.g., ionosphere, solar flare), and social domains (e.g., voting records).
The Breadth-First Advantage
A key insight from the experiments is the behavior of the error curve during breadth-first growth. Typically, the error drops rapidly as the most significant "global" features are split, reaches a minimum, and then gradually increases as the tree begins to overfit.
Results and Discussion
The results indicate that standard pruning is often suboptimal. The Intermediate Full Tree (IFT) outperformed the standard Pruned Tree (PT) in 46 out of 66 datasets (approximately 70%). Furthermore, the IFT was more accurate than the full unpruned tree in 54 out of 66 cases, validating breadth-first "pre-pruning" as a viable strategy.
While IDTs offer superior accuracy, they are generally larger than the highly compressed trees produced by standard pruning. This suggests a trade-off between model interpretability and predictive performance.
Conclusion
Intermediate Decision Trees represent a more granular approach to model selection than traditional pruning. While the current study identified the "best" IDT post-hoc, future work aims to develop automated cross-validation techniques to stop tree growth at the optimal breadth-first stage. This would not only improve accuracy but also reduce the computational cost of building and then pruning full trees.
Summary updated