Skip to main content
. 2019 Apr 2;19(7):1588. doi: 10.3390/s19071588
Algorithm 1: Decision tree algorithm pseudocode.
input: List of all explanatory variables (X), training dataset (D)
output: Decision tree (DT)
/1/ Start at the root node
/2/ for eachX in X 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 {X*S*} that produces the minimum overall X and S
/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