Skip to Content
Machine Learning with R, the tidyverse, and mlr
book

Machine Learning with R, the tidyverse, and mlr

by Hefin Rhys
April 2020
Intermediate to advanced
536 pages
16h 55m
English
Manning Publications
Content preview from Machine Learning with R, the tidyverse, and mlr

Chapter 8. Improving decision trees with random forests and boosting

This chapter covers

  • Understanding ensemble methods
  • Using bagging, boosting, and stacking
  • Using the random forest and XGBoost algorithms
  • Benchmarking multiple algorithms against the same task

In the last chapter, I showed you how we can use the recursive partitioning algorithm to train decision trees that are very interpretable. We finished by highlighting an important limitation of decision trees: they have a tendency to overfit the training set. This results in models that generalize poorly to new data. As a result, individual decision trees are rarely used, but they can become extremely powerful predictors when many trees are combined together.

By the end of this chapter, ...

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.
Start your free trial

You might also like

Advanced Machine Learning with R

Advanced Machine Learning with R

Cory Lesmeister, Dr. Sunil Kumar Chinnamgari
R Machine Learning Projects

R Machine Learning Projects

Dr. Sunil Kumar Chinnamgari

Publisher Resources

ISBN: 9781617296574Publisher SupportOtherPublisher WebsiteSupplemental ContentErrata PagePurchase Link