Chapter 6
Making Decisions with Trees
IN THIS CHAPTER
Understanding flowcharts and trees
Using information theory to build trees
Programming a decision tree
Exploring decision-tree parameters
Decision trees are some of the most powerful model types in classical machine learning. They often form the basis for other models, like bagging and boosting ensembles (discussed in Chapter 7), and as such, are very useful models to become familiar with.
In this chapter, you spend time admiring flowcharts as efficient decision-making tools and how they form the basis for decision trees. You explore fundamental information-theory concepts such as surprise, information, entropy, and the Gini index, and apply these concepts to build a decision tree, feature by feature. You use the scikit-learn library to program your own decision tree and evaluate its performance. You then explore different decision tree parameters provided by the library and learn how constructing your tree provides trade-offs between usability and accuracy.
Exploring the Beautiful Flowchart of a Decision Tree
When you make ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access