internalsGet Pro

Module 12 · Lesson 4 of 12Pro

Regression metrics: MAE, RMSE and beyond

Level
Beginner
Topic
Model evaluation and experimentation
Reading time
13 min

When you finish this page you can

  1. Compute MAE, RMSE, MAPE and R² by hand and with scikit-learn, and say what each one counts as a bad miss.
  2. Explain why squaring makes RMSE punish one big miss, and why MAE and RMSE can rank two models differently.
  3. Spot when MAPE breaks, at zero and by rewarding predictions that are too low.
  4. Pick a regression metric from what a wrong prediction costs, and judge it against a simple baseline.
  1. Baselines: the simple model to beat13 min
  2. Common losses: squared error to cross-entropy14 min
  3. Linear regression from scratch13 min

Video lesson · coming soon

The model with the smaller miss sizes the budget wrong

is our example online store. Farah, an ML engineer, predicts how much each customer will spend next month. Joseph, the growth lead, adds the predictions up to set the monthly voucher budget.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan