Tree-Based Models in R

In this course, you'll learn how to use tree-based models and ensembles for regression and classification.
Start Course for Free
4 Hours20 Videos58 Exercises18,971 Learners
4450 XP

Create Your Free Account

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).

Loved by learners at thousands of companies

Course Description

In this course you'll learn how to work with tree-based models in R. This course covers everything from using a single tree for regression or classification to more advanced ensemble methods. You'll learn to implement bagged trees, Random Forests, and boosted trees using the Gradient Boosting Machine, or GBM. These powerful techinques will allow you to create high performance regression and classification models for your data.

  1. 1

    Classification Trees

    This chapter covers supervised machine learning with classification trees.
    Play Chapter Now
  2. 2

    Regression Trees

    In this chapter you'll learn how to use a single tree for regression, instead of classification.
    Play Chapter Now
  3. 3

    Bagged Trees

    In this chapter, you will learn about Bagged Trees, an ensemble method, that uses a combination of trees (instead of only one).
    Play Chapter Now
  4. 4

    Random Forests

    In this chapter, you will learn about the Random Forest algorithm, another tree-based ensemble method. Random Forest is a modified version of bagged trees with better performance. Here you'll learn how to train, tune and evaluate Random Forest models in R.
    Play Chapter Now
  5. 5

    Boosted Trees

    In this chapter, you will see the boosting methodology with a focus on the Gradient Boosting Machine (GBM) algorithm, another popular tree-based ensemble method. Here you'll learn how to train, tune and evaluate GBM models in R.
    Play Chapter Now
In the following tracks
Machine Learning ScientistSupervised Machine Learning
Nick CarchediNick Solomon
Introduction to R
Gabriela de Queiroz Headshot

Gabriela de Queiroz

Data Scientist and founder of R-Ladies
Gabriela de Queiroz is a Data Scientist and the founder of R-Ladies, a world-wide organization for promoting diversity in the R community. She likes to mentor and share her knowledge through mentorship programs, tutorials and talks. She has worked in several startups and where she built teams, developed statistical models and employed a variety of techniques to derive insights and drive data-centric decisions. She holds 2 Master’s: one in Epidemiology and one in Statistics. Follow her at @gdequeiroz on Twitter and find out more about R-Ladies at
See More
Erin L. Headshot

Erin L.

Chief Machine Learning Scientist at
See More

What do other learners have to say?

I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.

Devon Edwards Joseph
Lloyds Banking Group

DataCamp is the top resource I recommend for learning data science.

Louis Maiden
Harvard Business School

DataCamp is by far my favorite website to learn from.

Ronald Bowers
Decision Science Analytics, USAA