Skip to main content
. 2019 Mar 8;19(5):1193. doi: 10.3390/s19051193
Algorithm 2 Pruning algorithm
1. Calculate the information gain of each node.
2. Recursively upwardly from the leaf node of the tree, calculate the loss of the leaf node before and after the parent node: Cα(TB) and Cα(TA).
If Cα(TA)<Cα(TB): Prune.
3. Repeat step 2 until it cannot continue.