Machine Learning with Tree-Based Models in R

Start Free Preview

Buying via our links supports this free directory · Affiliate disclosure.
Course facts
  • Payment: Free Preview (Paid Upgrade)
  • Learning style: Self-paced, start anytime
  • Format: Text & Interactive
  • Video access: Streaming Only
  • Before you start: Modeling with tidymodels in R
DataCamp details
  • Chapters: 4
Created byDataCamp
Available onDataCamp

Course Details
Learning Style

Start Anytime

Level

Beginner

Study Mode

100% Online

Duration

Short (< 10 Hours)

Languages
Audio Language

English

Outcomes
Certificate

Certificate of Completion

Price & Terms
Pricing Model

Free Preview (Paid Upgrade)

Technical
Content Medium

Text & Interactive

Video Access

Streaming Only

Specification
Access

Subscription

SKU: machine-learning-tree-based-models-r Category: Tags: , Brand:

Build, tune and compare decision trees, random forests and boosted ensembles in R with tidymodels, using health, chocolate and churn data.

At a glance
Duration4 hrs
LevelBeginner
CertificateCertificate of Completion
LanguageEnglish
Taught bySandro Raabe
AccessSubscription
Add your review
Add to wishlistAdded to wishlistRemoved from wishlist 0
Add to compare

Decision trees and the ensembles built from them can pick up non-linear patterns in data, and this course shows how to build them in R with the tidymodels package. You grow a single tree, then combine many trees into bagged models, random forests and gradient-boosted ensembles, using health data to predict diabetes, chocolate ratings for regression and credit card data to predict customer churn.

What You Will Achieve

  • Prepare training and test data and fit a decision tree that flags patients likely to develop diabetes
  • Judge a classifier with a confusion matrix, specificity and the area under its ROC curve
  • Estimate how a model will perform on new data with cross-validation and spot overfitting
  • Search a grid of hyperparameter values and pick the strongest model among single trees, random forests and boosted ensembles


Program Overview

Classification Trees and Model Evaluation

Builds a first decision tree on health data to predict diabetes and checks how well its predictions hold up.

  • Why tree-based methods are used
  • Specifying and training a classification tree
  • Train/test splits and class imbalance
  • Predictions and the confusion matrix

Regression Trees and Cross-Validation

Moves to continuous outcomes with a chocolate rating dataset and examines how reliably a model’s error can be measured.

  • Training and inspecting a regression tree
  • In-sample and out-of-sample performance metrics
  • Creating, fitting and evaluating cross-validation folds
  • The bias-variance tradeoff and model complexity

Tuning, Ensembles, and Boosted Trees

Tunes hyperparameters and builds bagged, random forest and gradient-boosted ensembles on credit card churn data before comparing them.

  • Tuning grids and choosing the best settings
  • Further model measures, including the ROC curve
  • Bagged trees, random forests and variable importance
  • Gradient boosting, final tuning and model comparison

Certificate Awarded (Paid)


Job Outlook

Tree-based modeling in R supports predictive analytics work such as estimating health risks or identifying customers likely to leave, wherever teams build and compare classification and regression models.


Our take

Good for: R learners who want guided practice building, tuning and comparing tree-based classification and regression models inside a tidymodels workflow.

Keep in mind: The work centers on the tidymodels framework in R and three prepared cases: diabetes records, chocolate ratings and credit card churn.

Bottom line: A step-by-step R course that starts with one tree and ends with a tuned gradient-boosted ensemble measured against simpler models.

Frequently Asked Questions

What problems do the tree models predict?

The first chapter uses health data to predict diabetes, the regression chapter works with chocolate ratings, and the ensemble chapters use credit card customer data to predict which customers are likely to churn.

Are regression trees taught as well as classification trees?

Yes. Classification trees come first, applied to the diabetes problem, and a full chapter then covers regression trees for continuous outcomes, along with error measures suited to them and cross-validation.

How far does the course go beyond single decision trees?

After single trees, you build bagged trees and random forests and read variable importance. The last chapter applies gradient boosting, tunes the boosted ensemble, and compares it with a single classifier using AUC and plotted ROC curves.

Which R package is used to build the models?

Every model in the course is specified, trained and evaluated with the tidymodels package, including the tuning grids and cross-validation folds, so the same workflow carries through all four chapters.

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0

No reviews yet. Be the first to review this course.

There are no reviews yet.

Write your review

Reviews can only be posted by registered learners. Log in, then you will return here to post.

×

    Report this page
    Machine Learning with Tree-Based Models in R
    Machine Learning with Tree-Based Models in R
    LiveTalent
    Logo
    Compare items
    • Total (0)
    Compare
    0