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

Real LLM grading for this pageLLM grading (this page):

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.

Step 1 / 8Frame the task — and meet the data

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.

ColumnTypeMissing
species (target)categorical, 3 classes0
islandcategorical, 3 values0
bill_length_mm, bill_depth_mm, flipper_length_mm, body_mass_gnumeric2 each
sexcategorical, 2 values11

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
TypeResource
In-appP5.ml-methods.06 — Model Evaluation, Selection & Interpretability — the splitting, CV, leakage and selection theory this case exercises
In-appP5.evaluation.01 — Evaluation Metrics — precision/recall/F1, ROC/AUC and calibration, with the interactive threshold explorer
In-appP5.applied-cases.04 — The Leakage Clinic — what happens when the discipline above is skipped, three ways
Externalscikit-learn user guide — Pipelines and composite estimators; Common pitfalls: data leakage
ExternalMitchell 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.

Ctrl/Cmd + Enter to send

🎓 Practice ladder

5 graded rungs · ~97 min

Now 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.