From the course: Applied Machine Learning: Ensemble Learning (2022)
Unlock the full course today
Join today to access over 24,700 courses taught by industry experts.
What is stacking? - Python Tutorial
From the course: Applied Machine Learning: Ensemble Learning (2022)
What is stacking?
- [Instructor] Now let's talk about the last of the three ensemble techniques that we'll cover in this course. And that's stacking. Stacking is an ensemble method that creates one strong metamodel that's trained on the predictions of several independent base models. On the surface, that may sound awfully similar to boosting and bagging. And the reality is that these are similar since they all fall under the umbrella of ensemble learners. So let's dig into the ways in which stacking is different than both boosting and bagging. The first is that the base models and metamodel are all trained on the same dataset, the full training set. Remember that in boosting and bagging, we use sampling techniques to generate the data for our base models to train on. In part, that's to make sure each model is different from each other and keying in on different trends in the data. We don't need to do that with stacking because the…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
What is stacking?4m 28s
-
(Locked)
How does stacking reduce overall error?1m 53s
-
(Locked)
When should you consider using stacking?2m 17s
-
(Locked)
What are examples of algorithms that use stacking?3m 19s
-
(Locked)
Explore stacking algorithms in Python4m 9s
-
(Locked)
Implement a stacking model6m 37s
-
(Locked)
-