internalsGet Pro

Module 14 · Lesson 10 of 15Pro

Testing ML systems: data, model and code checks

Level
Intermediate
Topic
Deploying ML models
Reading time
17 min

When you finish this page you can

  1. Sort the checks an ML system needs into tests of code, data and model, and say which bug each one catches.
  2. Write unit tests for feature code with exact expected answers, including the boundary cases.
  3. Test a model’s behaviour with simple cases, changes that shouldn’t matter, changes that should push the score one way, important slices and a simpler baseline.
  4. Set a model test’s bar so it fails on real regressions, not on noise: an exact rule, a fixed floor or a margin over the live model.
  1. Training pipelines: from notebook to repeatable job17 min
  2. Serving a model behind an API18 min

Video lesson · coming soon

The model got better and the worst orders got through

is the online store this course uses as its example. It takes 500,000 orders a day, and its checkout fraud check must answer in under 50 ms. Farah, an ML engineer on the ML team, retrains the fraud model and ships it once it passes the training pipeline’s .

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