Cell 01
Load the table
Bring the wine measurements into pandas and keep the cultivar labels readable.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
The capstone
Take wine chemistry measurements from a raw table to a plotted exploration, a scaled classification pipeline, and an evaluation that compares against a baseline. Seven cells, one shared Python session.
What you will produce
Cell 01
Bring the wine measurements into pandas and keep the cultivar labels readable.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Cell 02
Check types, missing values, and the scale of the chemical measurements.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Cell 03
Compare group means before modeling. A feature that barely moves is not doing much work.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Cell 04
Plot two candidate features and a distribution. Look for separation, overlap, and unusual points.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Cell 05
Keep the test rows untouched. Scale inside the pipeline so the test set never informs preprocessing.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Cell 06
Compare against a majority-class baseline, inspect per-class quality, and look at the confusion matrix.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Cell 07
Optional. Swap the estimator and compare cross-validated accuracy. Change one thing at a time.
Output
Run this cell to see its output. Cells share one Python session, so run them in order.
Before you call it done