Applied Case — The Honest Tabular Model, End to End
P5.applied-cases.01 · Audience: guest, it-ml, language-pro · Prerequisites: Model Evaluation, Selection & Interpretability, Evaluation Metrics for NLP
Everything the ML Methods and Evaluation tracks teach, run once, in order, on real data. The guided walk below builds a species classifier on the Palmer penguins study table with every number shown; the practice ladder makes you rebuild it rung by rung in the kernel — real files, real missing values, resource-metered grading — and ends in the platform's first Project: the same arc on 32,561 census rows with genuine missingness and class imbalance, graded by hidden tests and reviewed against a design rubric.
Task: predict a penguin’s species(Adelie / Gentoo / Chinstrap) from its measurements — a supervised, multi-class classification problem, exactly the shape catalogued in Supervised Learning Algorithms. The study table has 344 labelled rows and 8 columns; some measurements are missing, and sex is missing on 11 rows.
| Column | Type | Missing |
|---|---|---|
species (target) | categorical, 3 classes | 0 |
island | categorical, 3 values | 0 |
bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_g | numeric | 2 each |
sex | categorical, 2 values | 11 |
Class mix: Adelie 44.2 %, Gentoo 36.0 %, Chinstrap 19.8 %. Not balanced — every later choice (stratified split, baseline, metric reading) has to respect that.
Why does framing come before any code — what could go wrong if you decided the task after exploring the table?
📚 Go Further
| Type | Resource |
|---|---|
| In-app | P5.ml-methods.06 — Model Evaluation, Selection & Interpretability — the splitting, CV, leakage and selection theory this case exercises |
| In-app | P5.evaluation.01 — Evaluation Metrics — precision/recall/F1, ROC/AUC and calibration, with the interactive threshold explorer |
| In-app | P5.applied-cases.04 — The Leakage Clinic — what happens when the discipline above is skipped, three ways |
| External | scikit-learn user guide — Pipelines and composite estimators; Common pitfalls: data leakage |
| External | Mitchell et al. (2019), Model Cards for Model Reporting — the template step 8 abbreviates |
Ask the mentor about this module
Ask a question about this content. The mentor explains and grounds its answer in what you are studying; asking is recorded as a learning signal, not a grade.
🎓 Practice ladder
5 graded rungs · ~97 minNow build it yourself, in the kernel — real files under /data, real
missing values, resource-metered grading. Four guided rungs rebuild the
penguins walk; the finale is the platform's first Project: the full arc
on the UCI Adult census table, graded by hidden tests and reviewed against
the four-criterion design rubric shown in the workspace.
Rung 1 — Split before you look
Loading exercise…
Rung 2 — Baselines before models
Loading exercise…
Rung 3 — Preprocessing belongs in the pipeline
Loading exercise…
Rung 4 — Compare models with cross-validation
Loading exercise…
Rung 5 — Project: the honest income model
Loading exercise…
Try it yourself
A scratch console for this page's ideas — ungraded, nothing you run here is recorded.
Scratch console
A scratch console with the scientific stack (pandas, numpy, scikit-learn). Runs on the server — no network, resource-limited and measured.
Output appears here.
Where next?
Later in Applied Cases
This module unlocks