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):

Knowing every technique in the catalogue does not by itself produce a trustworthy model: the number you report at the end is only honest if the steps are chained in the right order, with the test data locked away before anyone looks at it. This module runs everything the ML Methods and Evaluation tracks teach once, in that order, on real data — the guided walk builds a species classifier on the Palmer penguins study table with every number shown, and the practice ladder then makes you rebuild it rung by rung in the kernel — the server-side workspace that runs and grades your code — against real files, real missing values and resource-metered grading. It 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 / 8 — Frame 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.

Self-check

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.

Images, PDF or text. Kept on this device only.
Keeping your files on this device

Off by default. The mentor always gets your file; this only decides whether your own copy stays here. Copies live in this browser only - they do not follow you to another device, and clearing site data removes them.

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.

My notes on this module

Loading your notes...

Applied Case — The Honest Tabular Model, End to End — TransformerLab