Skip to main content
Module 7 · Lesson 3 of 534/56 in the course~22 min
Module lessons (3/5)

Gradient boosting

Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 7 — Trees, ensembles and SVMs

Trees that correct each other, rounds and the learning rate.

What you'll learn in this lesson

  • Explain boosting as adding small trees that correct the current errors.
  • Perform one boosting round by hand.
  • Balance the number of rounds against the learning rate.

Overview

A forest builds its trees independently and averages them. Boosting builds them one after another, and each new tree is trained on what the model still gets wrong:

For squared error the residuals are exactly the negative gradient of the loss, which is why this is called gradient boosting: it is gradient descent, but in the space of functions.

Sections covered in this lesson

  1. 1The hook: fix the mistakes, round after round
  2. 2Try it: add rounds
  3. 3Random forests vs. gradient boosting
  4. 4Progressive examples: boosting residuals step by step
  5. 5Practice
  6. 6Check your understanding
Pro Lesson · Module 7 — Trees, ensembles and SVMs

Unlock "Gradient boosting" and the full Machine Learning: from first principles to practice curriculum

Trees that correct each other, rounds and the learning rate.

Unlock all 5 hands-on exercises in this lesson plus every advanced WebAssembly module with automated checks.

  • Instant access to all advanced modules in Machine Learning: from first principles to practice plus 17 more courses
  • Hands-on browser exercises with automated test suites and solutions
  • 14-day money-back guarantee processed via Paddle.com

14-day guarantee · Cancel anytimeModule 1, all 18 interactive games, and cheatsheets are always free.