Skip to main content
Module 4 · Lesson 5 of 619/56 in the course~18 min
Module lessons (5/6)

Regression metrics

Lesson preview5 hands-on exercises readyMachine Learning: from first principles to practice · Module 4 — Generalization and evaluation

MAE, RMSE, R-squared, residuals and baselines.

What you'll learn in this lesson

  • Compute and interpret MAE, RMSE and R².
  • Inspect residuals to find problems a single number hides.
  • Compare a model with a trivial baseline.

Overview

MSE is great for optimisation but awkward to read: its units are squared. In practice we report metrics that mean something to the people who will use the model.

If RMSE is much larger than MAE, a few large errors dominate.

Sections covered in this lesson

  1. 1The hook: "how wrong is it, in units I understand?"
  2. 2Comparing regression metrics
  3. 3Try it: interactive metrics & residual explorer
  4. 4Progressive examples: measuring error end to end
  5. 5Look at the residuals
  6. 6The baseline question
Pro Lesson · Module 4 — Generalization and evaluation

Unlock "Regression metrics" and the full Machine Learning: from first principles to practice curriculum

MAE, RMSE, R-squared, residuals and baselines.

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.