HomeCoursesData Science with R: Decision Trees and Random Forests
AI-powered learning
Save

Data Science with R: Decision Trees and Random Forests

Gain insights into essential machine learning algorithms in R, including CART, random forest, and XGBoost. Discover model tuning and cross-validation to create accurate, robust data science models.

65 Lessons
14h
Join 2.9 million developers at
Join 2.9 million developers at
LEARNING OBJECTIVES
  • An understanding of the basics of machine learning and supervised learning
  • Familiarity with the differences between classification and regression trees
  • A working knowledge of XGBoost algorithm
  • Familiarity with random forest

Learning Roadmap

65 Lessons11 Quizzes

1.

Welcome to the Course

Welcome to the Course

Get familiar with machine learning fundamentals, key datasets, and predictive analytics in R.

2.

Supervised Learning

Supervised Learning

Unpack the core of supervised learning, decision trees, overfitting, and model tuning in machine learning.

3.

Classification Tree Math

Classification Tree Math

6 Lessons

6 Lessons

Examine key mathematical concepts and techniques for optimizing classification tree splits using Gini impurity.

4.

Using Classification Trees in R

Using Classification Trees in R

7 Lessons

7 Lessons

Apply your skills to conduct EDA, prepare data, specify algorithms, and fit classification trees in R.

5.

Introducing the Bias-Variance Tradeoff

Introducing the Bias-Variance Tradeoff

3 Lessons

3 Lessons

Take a look at understanding model complexity and the bias-variance tradeoff in machine learning.

6.

Model Tuning

Model Tuning

4 Lessons

4 Lessons

Tackle cross-validation, optimal model tuning, decision tree complexity, and pruning to enhance model performance.

7.

Model Tuning with tidymodels

Model Tuning with tidymodels

5 Lessons

5 Lessons

Piece together the parts of model accuracy, cross-validation, hyperparameter tuning, and visualization with tidymodels.

8.

Feature Engineering

Feature Engineering

6 Lessons

6 Lessons

Step through transforming raw data into meaningful features, avoiding information leakage, creating decision boundaries, and handling missing data.

9.

Regression Trees

Regression Trees

5 Lessons

5 Lessons

Walk through regression trees, SSE, and training with tidymodels for numeric predictions.

10.

The Random Forest Algorithm

The Random Forest Algorithm

4 Lessons

4 Lessons

Break apart the random forest's ensemble, bagging, and feature randomization techniques.

11.

Using Random Forests

Using Random Forests

7 Lessons

7 Lessons

Break down the steps to train, tune, and evaluate random forest models using R.

12.

Gradient Boosting Trees

Gradient Boosting Trees

6 Lessons

6 Lessons

Map out the steps for implementing and tuning Gradient Boosting Trees using XGBoost in R.
Certificate of Completion
Showcase your accomplishment by sharing your certificate of completion.
Author NameData Science with R:Decision Trees and RandomForests
Developed by MAANG Engineers
ABOUT THIS COURSE
The R programming language is widely used in the field of data science. Machine learning is a fundamental skill for learners looking to master industry algorithms in the field of data science. In this course, you’ll learn about several essential algorithms used in machine learning, including classification and regression trees (CART), random forest, and XGBoost. CART is a decision tree algorithm that’s used for both classification and regression problems. Random forest is an ensemble learning method that uses multiple decision trees to improve the accuracy of predictions. XGBoost, short for Extreme Gradient Boosting, is a powerful algorithm that’s also used for regression and classification problems. You’ll also learn about cross-validation and model tuning, which are essential skills for crafting valuable machine learning models. After taking this course, you’ll have the crucial skills to ensure that the machine learning models you create are accurate, robust, and reliable.
ABOUT THE AUTHOR

David Langer

I'm a hands-on analytics professional, having used my skills with Excel, SQL, and R/Python to craft insights, advise leaders, and shape company strategy. I'm also a skilled educator, having trained 1000s of working professionals over the years.

Learn more about David

Trusted by 2.9 million developers working at companies

These are high-quality courses. Trust me the price is worth it for the content quality. Educative came at the right time in my career. I'm understanding topics better than with any book or online video tutorial I've done. Truly made for developers. Thanks

A

Anthony Walker

@_webarchitect_

Just finished my first full #ML course: Machine learning for Software Engineers from Educative, Inc. ... Highly recommend!

E

Evan Dunbar

ML Engineer

You guys are the gold standard of crash-courses... Narrow enough that it doesn't need years of study or a full blown book to get the gist, but broad enough that an afternoon of Googling doesn't cut it.

S

Software Developer

Carlos Matias La Borde

I spend my days and nights on Educative. It is indispensable. It is such a unique and reader-friendly site

S

Souvik Kundu

Front-end Developer

Your courses are simply awesome, the depth they go into and the breadth of coverage is so good that I don't have to refer to 10 different websites looking for interview topics and content.

V

Vinay Krishnaiah

Software Developer

Built for 10x Developers

No Passive Learning
Learn by building with project-based lessons and in-browser code editor
Learn by Doing
Personalized Roadmaps
The platform adapts to your strengths & skills gaps as you go
Learn by Doing
Future-proof Your Career
Get hands-on with in-demand skills
Learn by Doing
AI Code Mentor
Write better code with AI feedback, smart debugging, and "Ask AI"
Learn by Doing
Learn by Doing
MAANG+ Interview Prep
AI Mock Interviews simulate every technical loop at top companies
Learn by Doing