Modeled on CMU’s ML in Production (MLIP)

机器学习工程化:从模型到生产系统

Machine Learning in Production

Turn a model that merely runs into a system that survives production

7 labs12 AI-mentored sessions~6 hoursBilingual · EN / 中
Start learning →

About this course

A model that hits 95% accuracy in a notebook is still worlds away from shippable. This course does not
teach you to train a bigger model — it teaches you to put a model inside a real system: one that receives
dirty data, meets distributions it never saw, gets depended on by downstream services, and quietly rots
over time. In every session an AI mentor walks you through building a small offline tool by hand — a
system-cost ledger, an acceptance gate, a behavioral test bench, a feature validator, contract tests, a
distribution-drift detector, a monitoring aggregator — all pure Python + numpy, fixed seeds, results in
seconds, verifiable by print. No cloud, no external services, yet each toy is the minimal reproduction of
a load-bearing wall you will actually rely on in production. By the end, the way you look at a model shifts
from "how accurate is it" to "how will it break in production, and how do I catch it first".

What you'll learn

  • Decompose an AI system and compute the system-level cost of one model under different decision thresholds
  • Hand-compute precision/recall from a confusion matrix, sweep thresholds by cost, and catch data leakage
  • Write behavioral tests for a model like software tests (MFT / invariance / directional / slice)
  • Wrap a model as a schema'd service, and build a feature validator and contract tests to block bad input and breaking changes
  • Build data-quality gates and pipeline expectation tests, and detect training/serving skew
  • Detect distribution drift by hand with PSI / KS, aggregate production monitoring metrics, and set alarms

Syllabus

1System Design: From Models to AI-Enabled Systems3 sessions
  • 1From Model to System: How One Wrong Prediction Propagates30 minStart →
  • 2Requirements & Acceptance Criteria: Turn "Make It Accurate" Into a Gate30 minStart →
  • 3Planning for Mistakes: The Model Will Be Wrong — Catch It First30 minStart →
2Model Quality: Offline Evaluation Done Right3 sessions
  • 1The Accuracy Trap: 99% Accuracy Can Be Useless30 minStart →
  • 2Threshold Tradeoff: Precision vs Recall, Pick the Operating Point by Cost30 minStart →
  • 3Data Leakage: Why 99% Offline Collapses in Production30 minStart →
3Behavioral Testing: Test a Model Like Software3 sessions
  • 1Models Deserve Tests Too: Minimum Functionality Tests30 minStart →
  • 2Invariance & Directional Tests: Perturb the Input, Should It Change?30 minStart →
  • 3Slice Testing: Find the Worst Subgroup Hiding Under the Average30 minStart →
4Serving & Contracts: Wrapping a Model and Testing Its Contract3 sessions
  • 1Wrapping a Model as a Service: The Boundary Is a Contract30 minStart →
  • 2The Feature Validator: A Wall at the Serving Boundary30 minStart →
  • 3Contract Tests: Catch Breaking Changes Before They Ship30 minStart →
5Data Quality & Pipeline Testing0 sessions

Sessions are on the way.

6Monitoring & Distribution Drift0 sessions

Sessions are on the way.

7MLOps & Responsible ML: Versioning, Reproducibility, Fairness0 sessions

Sessions are on the way.

Same series · 世界名校知名实验室系列

Flagship University Lab Series

Modeled on Stanford / MIT / Berkeley syllabi — learn from scratch with a mentor Agent guiding you in real time.