ML Lab
Learn to build predictive models on the tabular data of a group data platform, evaluate whether they can be trusted, and put them into production. Define the target, build features only from what is known at decision time, split so the future never leaks into evaluation, and climb from the simplest method upward, deciding with numbers where to stop. The goal is not knowing many models but the habit of doubting and checking whether an evaluation score will hold up in production.
- Status
- Updated 2026-11-17 KST · 1 of 1 units written. A one-page plan is written. The parts, unit counts, data and tools are not yet agreed and may change. There is no full unit list or unit text yet
- Size
- Planned as 7 parts and about 34 units (31 core, 3 advanced), each a 60 to 90 minute session. Units are numbered volume-part-chapter (V00-P01-C03); from V00-P01 on, the first unit of each part (C00) is that part's map
- Audience
- Analysts and data scientists who can read Python and SQL; having taken the intervals and tests of Stats Lab helps. Each effect is first shown with results measured on this machine, then the principle is explained
- Cases
- Questions asked by the subsidiaries of the fictional holding company danny22.com. The main case running from V00-P01 to the end is retail's "which customers will buy again in the next 90 days?", and the credit case is finance's "which customers will miss next month's card payment?". The subsidiaries and people are made up and unrelated to real companies
- Data
- Real public data. Only what public data cannot reveal (labels that differ between raters, deliberately flipped labels, labels that arrive late) is filled with synthetic data that has a planted answer, and what was planted is disclosed. Candidates include UCI Online Retail II, UCI Default of Credit Card Clients and Statlog German Credit; how much of each to use is not yet agreed
- Language
- The course material is written in Korean
- Access
- ml-lab.danny22.com, open to signed-in readers. Get in touch to request access
What you learn
- Defining the target and splitting data: design as-of dates and label windows, build features only from what is known at decision time, compare time, group and random splits, see how much cross-validation wobbles on small data, and hunt for leakage.
- Climbing the model ladder: start from baselines and rules, then linear models and regularization, decision trees and random forests, up to gradient boosting, and decide with numbers where to stop for each dataset.
- Evaluating honestly: ranking metrics on imbalanced data (ROC and PR), costs and thresholds, calibration, error analysis and performance by group (sensitive attributes and proxies), and model explanation.
- Making labels: defining labels and rater agreement, finding label noise, and as an advanced topic, active learning.
- Running models in production: set up the experiment tracking service MLflow, track experiments and manage model versions, produce batch predictions on schedule, and monitor and retrain. GPU-accelerated modeling is covered as an advanced topic.
What a unit contains
- Theory: concepts, diagrams and numbers measured on this machine.
- Notebook: the core idea written out at small scale. A final check cell judges whether adding a value later than decision time to the features stops the run, whether evaluation came from a period not used for training, and whether hand-computed metrics match the library's.
- Pipeline code: the same work done at real scale with production tools.
Parts
The course works from the top down. V00-P01 takes one business question all the way through making labels, splitting, comparing a rule with a model, tracking and producing predictions, to show what the rest is for; from V00-P02 it goes deeper in order: data, models, evaluation, labels and operations. Where Stats Lab asks whether a number can be trusted, this lab uses the same data to predict what comes next and runs those predictions in production.
| Part | What you learn | Units |
|---|---|---|
| V00-P00 Getting started | The syllabus, where this lab sits on the common skeleton for data problem solving and what it leaves behind (MLflow, model versions, batch prediction), and the way of working (reading from the lake, fixed seeds) | 3 |
| V00-P01 A thin first pass | Defining "which customers will buy again in the next 90 days?" with a single as-of-date snapshot, splitting by time, comparing a ranking rule with logistic regression, writing out a list of top customers, and tracking the result in MLflow | 4 |
| V00-P02 Data and splitting | Designing as-of dates and label windows, building features only from what is known at decision time (including categories and missing values), time, group and random splits, cross-validation wobble on small data, finding leakage | 5 |
| V00-P03 Model ladder | Baselines and rules, linear models and regularization, decision trees and random forests, gradient boosting (LightGBM, XGBoost, CatBoost). Hyperparameter search is the advanced unit | 6 |
| V00-P04 Evaluation | Ranking metrics and imbalance (ROC and PR), costs and thresholds, calibration, error analysis and performance by group (sensitive attributes and proxies), model explanation | 6 |
| V00-P05 Making labels | Defining labels and rater agreement, finding label noise. The advanced unit covers active learning | 4 |
| V00-P06 Model operations | Setting up MLflow, experiment tracking and model versioning, batch prediction, monitoring and retraining. The advanced unit covers GPU-accelerated modeling | 6 |
The V00-P01 version has already been run. Predicting 90-day repeat purchases for 4,335 customers in UCI Online Retail II, a ranking rule scores a ROC-AUC of 0.7688 and logistic regression 0.7680, a tie. The logistic model's mean prediction of 0.368 falls short of the actual repeat rate of 49.5%, because more customers buy again before Christmas than in the spring and summer it was trained on. That is the lead-in to the calibration unit in V00-P04.