Skip to main content
. 2019 Aug 9;19(16):3492. doi: 10.3390/s19163492
Algorithm 1. RF learning algorithm: Learning algorithm of random forest.
for m=1:M
  • (a)

    Draw N samples from the training data set.

  • (b)

    Grow a decision tree fm() using the sampled data, by recursively repeating the following steps for each terminal node of the tree until the tree has the maximum size.

    • (i)

      Select D variables randomly from P variables.

    • (ii)

      Choose the best attribute/split-point among the D

    • (iii)

      Split the node into two sub-branches

end