encyclopegia.org

Decision tree pruning

Pruning is a data compression technique in machine learning and search algorithms that reduces the size of decision trees by removing sections of the tree that are non-critical and redundant to classify instances.[src] Pruning reduces the complexity of the final classifier, and hence improves predictive accuracy by the reduction of overfitting.[src] One of the questions that arises in a decision tree algorithm is the optimal size of the final tree.[src] A tree that is too large risks overfitting the training data and poorly generalizing to new samples.[src] A small tree might not capture important structural information about the sample space.[src] However, it is hard to tell when a tree algorithm should stop because it is impossible to tell if the addition of a single extra node will dramatically decrease error.[src] This problem is known as the horizon effect.[src] A common strategy is to grow the tree until each node contains a small number of instances then use pruning to remove nodes that do not provide additional information.[src] Pruning should reduce the size of a learning tree without reducing predictive accuracy as measured by a cross-validation set.[src] There are many techniques for tree pruning that differ in the measurement that is used to optimize performance.[src]

Pruning is a data compression technique in machine learning and search algorithms that reduces the size of decision trees by removing sections of the tree that are non-critical and redundant to classify instances.[src] Pruning reduces the complexity of the final classifier, and hence improves predictive accuracy by the reduction of overfitting.[src] One of the questions that arises in a decision tree algorithm is the optimal size of the final tree.[src] A tree that is too large risks overfitting the training data and poorly generalizing to new samples.[src] A small tree might not capture important structural information about the sample space.[src] However, it is hard to tell when a tree algorithm should stop because it is impossible to tell if the addition of a single extra node will dramatically decrease error.[src] This problem is known as the horizon effect.[src] A common strategy is to grow the tree until each node contains a small number of instances then use pruning to remove nodes that do not provide additional information.[src] Pruning should reduce the size of a learning tree without reducing predictive accuracy as measured by a cross-validation set.[src] There are many techniques for tree pruning that differ in the measurement that is used to optimize performance.[src] ==Techniques== Pruning processes can be divided into two types (pre- and post-pruning).[src] Pre-pruning procedures prevent a complete induction of the training set by replacing a stop () criterion in the induction algorithm (e.g.[src] max.[src] Tree depth or information gain (Attr)> minGain).[src] Pre-pruning methods are considered to be more efficient because they do not induce an entire set, but rather trees remain small from the start.[src] Prepruning methods share a common problem, the horizon effect.[src] This is to be understood as the undesired premature termination of the induction by the stop () criterion.[src] Post-pruning (or just pruning) is the most common way of simplifying trees.[src] Here, nodes and subtrees are replaced with leaves to reduce complexity.[src] Pruning can not only significantly reduce the size but also improve the classification accuracy of unseen objects.[src] It may be the case that the accuracy of the assignment on the train set deteriorates, but the accuracy of the classification properties of the tree increases overall.[src] The procedures are differentiated on the basis of their approach in the tree (top-down or bottom-up).[src] ==Pruning algorithms== ===Reduced error pruning=== One of the simplest forms of pruning is reduced error pruning.[src] Starting at the leaves, each node is replaced with its most popular class.[src] If the prediction accuracy is not affected then the change is kept.[src] While somewhat naive, reduced error pruning has the advantage of simplicity and speed.[src] ===Cost complexity pruning=== Cost complexity pruning generates a series of trees where is the initial tree and is the root alone.[src] At step , the tree is created by removing a subtree from tree and replacing it with a leaf node with value chosen as in the tree building algorithm.[src] The subtree that is removed is chosen as follows: Define the error rate of tree over data set as .[src] The subtree t that minimizes \frac{\operatorname{err}(\operatorname{prune}(T,t),S)-\operatorname{err}(T,S)}{\left\vert\operatorname{leaves}(T)\right\vert-\left\vert\operatorname{leaves}(\operatorname{prune}(T,t))\right\vert} is chosen for removal.[src] The function defines the tree obtained by pruning the subtrees from the tree .[src] Once the series of trees has been created, the best tree is chosen by generalized accuracy as measured by a training set or cross-validation.[src] ==Examples== Pruning could be applied in a compression scheme of a learning algorithm to remove the redundant details without compromising the model's performances.[src] In neural networks, pruning falls into two broad categories.[src] Unstructured pruning removes individual weights or connections, typically those below a chosen magnitude threshold, producing a sparse weight matrix.[src] While this can dramatically reduce parameter count, the irregular pattern of remaining weights makes it difficult to accelerate on standard hardware.[src] Structured pruning, by contrast, removes entire neurons, channels, filters, or layers, producing a smaller but still dense network that is easier to accelerate on conventional hardware, though it is generally more difficult to achieve high sparsity ratios without degrading accuracy.[src] A common workflow is train-prune-fine-tune: a network is first trained to convergence, pruned according to a chosen criterion, and then fine-tuned for a few additional epochs at a low learning rate to recover any accuracy lost during pruning.[src] This process may be repeated iteratively, with the pruning rate increased at each round.[src] ==See also== Alpha–beta pruning Artificial neural network Null-move heuristic Pruning (artificial neural network) ==References== ==Further reading== MDL based decision tree pruning Decision tree pruning using backpropagation neural networks ==External links== Fast, Bottom-Up Decision Tree Pruning Algorithm Introduction to Decision tree pruning[src]

50 sentences · 50 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Decision tree pruning." encyclopegia.org, 2026, https://encyclopegia.org/wiki/decision-tree-pruning. Accessed 27 November 2026.

Chicago

"Decision tree pruning." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/decision-tree-pruning.

APA

encyclopegia.org. (2026). Decision tree pruning. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/decision-tree-pruning

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Ti -Tree

stub · references available

Siberian Tree Frog

stub · references available

Olive-tree Warbler

stub · references available

Tree Pipit

stub · references available

Matschie's tree-kangaroo

stub · references available

phylogenetic tree

stub · references available

Gray-bellied pencil-tailed tree-mouse

stub · references available

Pallid Atlantic Tree-rat

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1370306780 · 0.5 · snapshot enwiki-001370306780

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.