Chapter 7
Better Together: Boosting, Bagging, and Random Forests
IN THIS CHAPTER
Creating ensemble models from multiple base models
Increasing your base models’ performance with bagging and boosting
Leveling up a decision tree into a random forest
Overfitting and explainability trade-offs
For complicated problems, sometimes a single AI model isn’t cut out to solve the whole thing by itself. Sometimes the underlying problem has multiple potential causes, and an AI model may only be capable of covering one or two of them. Or, depending on the split of the training and test data, one AI model might emphasize a particular aspect of the problem at the expense of another, equally important aspect.
In this chapter, you discover the power of using multiple models together to create ensemble models. You first explore what an ensemble model is and how it is created under two different algorithms: bagging, which leverages the knowledge of the crowd, and boosting, which uses its past mistakes to make better future predictions. You then explore how to take a basic decision tree and multiply ...
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