RecSys Lab
Take recommendation past "did the list hit", through to the decisions the list changes and whether those decisions improved. You decide what to predict and how to judge it first, make models compete with popularity rankings and hand-written rules, run a recommendation job every day, and look back at the loop where recommendations reshape the next data. The goal is less to know many models than to measure offline scores and real effects separately, and to watch what lies beyond accuracy: concentration, coverage, new users and new items.
- Status
- Updated 2026-11-17 KST · 1 of 3 units written. A one-page plan is written. The structure, first volume, data and tools are all proposals not yet agreed and may change. The full unit list and the material are written just before writing begins
- Size
- A 3-unit common volume V00 + a 37-unit first volume V01, 40 units in all (39 core, 1 advanced). V01 includes one volume map and seven part maps. Each unit is 60–90 minutes of lecture. The unit count may change when the full unit list is written
- Structure
- A common volume, V00, shared by every problem, plus one volume per problem. A volume takes one business unit's problem once around the common skeleton defined in Data Culture Lab, from finding the problem to looking back. Units are numbered volume-part-chapter (V01-P02-C04), and 00 at each level is the map: V01-P00 is the volume map, and C00 in each part is that part's map
- First volume
- A daily "discoveries" list for the media unit's music service (V01) is recommended. The recommendation follows measuring two candidates on this machine; the course author makes the call. Product recommendations at the retail unit and people-to-follow recommendations at the media unit remain candidates
- Audience
- Analysts, data scientists and ML engineers. Being able to read Python is enough. Basics such as matrix factorization and sparse matrices are covered briefly just before the unit that first uses them
- Cases
- Business units of danny22.com, a fictional holding company. A volume goes only to the unit whose core business is that data. The companies and people are made up and have nothing to do with real companies
- Data
- The candidates for V01 are the daily listening records published by the open listening service ListenBrainz and music metadata from MusicBrainz, treating those listeners as users of the fictional media unit. What the data lacks, such as impression logs and experiment results, is filled with synthetic data with planted answers, and what was planted is stated. Since no list can be shown to real users, "did decisions improve" goes only as far as an experiment plan and simulation
- Access
- recsys-lab.danny22.com, open to signed-in readers. Get in touch to request access
- Language
- The course material is written in Korean
What you learn
- Telling problems apart by shape: sort recommendation problems along seven axes: what is recommended (songs heard again, products bought once, people), what signals remain, the moment of display, how it is evaluated, concentration, new users, and items.
- Setting the verdict first: decide whether to predict all of the next day's listening or only new discoveries, and write down the time-ordered split, recall@K, NDCG@K and guardrails for coverage and popularity concentration before seeing results.
- Climbing the ladder from the bottom: start from popularity rankings and "my repeats", then move up through item-based neighbors, matrix factorization (ALS) and a linear model (EASE), content-based candidates for new items from audio features and metadata, and re-ranking for diversity.
- Separating offline scores from real effects: see why hits among what was shown are not an effect, and use off-policy evaluation and an experiment plan to settle what can and cannot be claimed.
- Running it and looking back: a daily batch job builds each morning's list and logs impression probabilities and the exploration share, scored against the next day's listening in shadow mode. At the end you look back at the feedback loop where recommendations change the next training data.
What a unit contains
- Theory: concepts and the reasons behind them; principles owned by other labs (experiment design, neural networks) point to those labs.
- Hands-on notebook: work in time order using only what was known at decision time, judged by check cells.
- Pipeline code: the same work at the size of a job that runs every day.
- Canvas: each unit fills at least one cell of the volume's canvas and is marked core or advanced.
Course
V01 is the recommended option. If the first volume changes, the V01 rows below change too.
| Part | What you learn | Units |
|---|---|---|
| V00-P00 Common | The syllabus, a map of recommendation problems (seven axes and the volume map; telling "did the list hit" apart from "did decisions improve"), and how to work (sparse matrices, time-ordered splits that use only decision-time information) | 3 |
| V01-P00 Music discovery map | The map of this volume: the business unit and its decision, the order of the seven parts and their lifecycle stages, what carries over from V00, and what this volume leaves behind | 1 |
| V01-P01 Finding the problem | Separating the request "build a recommendation model" from the problem "users can't find new songs", a metric tree splitting listening time into discovery and repeats with concentration guardrails, root-cause breakdown, and a ladder of solutions from editorial lists to personalized models with its gate | 5 |
| V01-P02 Baseline and data | How the current approach (popularity chart, my repeats) scores, reading the data and masked user IDs, old listens uploaded in bulk and the leakage they cause, recording IDs, what it means to have no impression log, and the data's licenses and limits | 6 |
| V01-P03 Evaluation design | What to predict (all of the next day's listening versus discoveries), time-ordered split and metrics (recall@K, NDCG@K, coverage, popularity rank), and a verdict and decision rule written down before results | 4 |
| V01-P04 Methods | Popularity and my repeats, item-based neighbors, matrix factorization and linear models, content-based candidates for new items and new users, candidate generation and re-ranking (diversity, artist caps). One advanced unit covers two-tower models and sequential recommendation | 6 |
| V01-P05 Evaluation | Is the model right (by group: new users, heavy listeners, long-tail songs), concentration and coverage, off-policy evaluation (IPS, SNIPS, replay and its conditions), did decisions improve (an experiment plan and what only that experiment can answer) | 5 |
| V01-P06 Validation, approval and operation | Independent validation and approval, a daily batch recommendation job (logging list, position, impression probability and exploration share), shadow operation scored on the next day's listening, monitoring, and a fallback to the popularity list | 6 |
| V01-P07 Looking back | The feedback loop (recommendations change the next training data), conclusions and wrapping up, and on to the next volume | 4 |