Algorithms for training decision trees

Now that we have understood how a decision tree works, we'll want to address the issue of how we can train one using some data. There are several algorithms that have been proposed to build decision trees, and in this section we will present a few of the most well-known. One thing we should bear in mind is that whatever tree-building algorithm we choose, we will have to answer four fundamental questions:

  • For every node (including the root node), how should we choose the input feature to split on and, given this feature, what is the value of the split point?
  • How do we decide whether a node should become a leaf node or if we should make another split point?
  • How deep should our tree be allowed to become?
  • Once we ...

Get Mastering Predictive Analytics with R now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.