| Algorithm 1: Decision tree algorithm pseudocode. |
|
input: List of all explanatory variables (), training dataset () output: Decision tree () /1/ Start at the root node /2/ for each in do /3/ find the set S that minimizes the sum of the node impurities in the two child nodes in Equation (1) and choose the split that produces the minimum overall and /4/ end /5/ if stopping criterion is reached then do /6/ stop /7/ else do /8/ apply step 2 to each child node in turn /9/ end /10/ return DT |