Book Image

Hands-On Ensemble Learning with R

By : Prabhanjan Narayanachar Tattar
Book Image

Hands-On Ensemble Learning with R

By: Prabhanjan Narayanachar Tattar

Overview of this book

Ensemble techniques are used for combining two or more similar or dissimilar machine learning algorithms to create a stronger model. Such a model delivers superior prediction power and can give your datasets a boost in accuracy. Hands-On Ensemble Learning with R begins with the important statistical resampling methods. You will then walk through the central trilogy of ensemble techniques – bagging, random forest, and boosting – then you'll learn how they can be used to provide greater accuracy on large datasets using popular R packages. You will learn how to combine model predictions using different machine learning algorithms to build ensemble models. In addition to this, you will explore how to improve the performance of your ensemble models. By the end of this book, you will have learned how machine learning algorithms can be combined to reduce common problems and build simple efficient ensemble models with the help of real-world examples.
Table of Contents (17 chapters)
Hands-On Ensemble Learning with R
Contributors
Preface
12
What's Next?
Index

Bagging


Bagging stands for Boostap AGGregatING. This was invented by Breiman (1994). Bagging is an example of an homogeneous ensemble and this is because the base learning algorithm remains as the classification tree. Here, each bootstrap tree will be a base learner. This also means that when we bootstrapped the linear regression model in Chapter 2, Bootstrapping, we actually performed an ensemble there. A few remarks with regards to combining the results of multiple trees is in order here.

Ensemble methods combine the outputs from multiple models, also known as base learners, and produce a single result. A benefit of this approach is that if each of these base learners possesses a desired property, then the combined result will have increased stability. If a certain base learner is over-trained in a specific region of the covariate space, the other base learner will nullify such an undesired prediction. It is the increased stability that is expected from the ensemble, and bagging many times...