Exercises
Core
- Rewrite a vague “predict churn” request as a decision contract.
- Implement majority, rule, and linear baselines behind one interface.
- Construct a synthetic leakage feature and demonstrate its misleading gain.
- Compare random, grouped, and temporal splits on repeated entities.
- Calculate accuracy, balanced accuracy, precision, recall, F1, and expected cost by hand for one confusion matrix.
- Plot and interpret a reliability diagram.
- Select thresholds for two different capacity budgets.
- Create a dataset card and identify one use the data cannot support.
- Prove offline/online feature parity on replayed records.
- Reproduce a peer’s run from a clean environment.
- Label 30 errors into a mechanism-based taxonomy.
- Write a model-selection memo that rejects the highest-scoring candidate.
Transfer
Given a new domain and incomplete requirements, identify the five questions that must be answered before touching the data. Defend which work should remain non-AI.