Skip to content

Part 7 — Capstones

A capstone is a large project that combines many modules into one realistic job. Each capstone gives you:

  • a brief (who asks and why);
  • the dataset;
  • milestones with acceptance criteria;
  • a grading rubric;
  • a full reference solution, hidden in collapsible blocks.

The reference solutions run as shown. Every output on the pages is real.

# Capstone Main skills Builds on
1 Python CLI report tool OOP, argparse, pathlib, dataclasses, logging, pytest Parts 1–3
2 Sales analysis cleaning, EDA, charts, statistics, SQL, written findings Part 4
3 House price regression pipelines, model comparison, tuning, residual analysis Modules 32–35, 37, 38, 43
4 Customer churn classification imbalanced data, calibration, threshold choice by profit, SHAP Modules 33–38, 43
5 Customer segmentation RFM features, clustering, PCA, segment stability, business actions Modules 24–29, 39
6 Demand forecasting daily series, baselines, SARIMAX vs gradient boosting, backtests Modules 25, 29, 37, 40
7 Review sentiment text cleaning, TF-IDF baseline, a PyTorch model, error analysis Modules 34, 37, 41, 42
8 Deployment FastAPI service, validation, safe model loading, tests, runbook Module 44, capstone 4
  1. Read the brief and the rubric first. The rubric tells you what “done” means.
  2. Set up a fresh project folder with the course data (see Get the data). Keep the data dictionary open.
  3. Work milestone by milestone. Check each milestone’s acceptance criteria before you move on.
  4. Keep a short log of your decisions and why you made them. The rubric rewards clear reasoning, not only scores.
  5. Open the reference solution only for a milestone you have finished or are truly stuck on. Compare approaches. A different solution that meets the criteria is fine.
  6. Grade yourself with the rubric. Redo the weakest milestone.
  • Fit all preprocessing inside pipelines, on training data only.
  • Make every choice (features, models, thresholds) with cross-validation or a validation split. Score the test set once, at the end.
  • Report honest results. A simple baseline sometimes wins. Say so.
  • Write findings as claim → evidence → caveat. Every number you write must come from your own output.
  • Correlation is not causation. Use careful words (“is associated with”, “predicts”) unless you ran an experiment.

Each capstone stands alone, but the order matches the course. If you follow a learning path, do the capstones it lists:

I want to… Use…
practice Python engineering end to end Capstone 1
produce a business analysis with charts and a memo Capstone 2
build and tune a regression model Capstone 3
choose a classification threshold by business value Capstone 4
find customer segments Capstone 5
forecast a time series Capstone 6
compare a classical NLP model with a neural network Capstone 7
serve a model behind an API Capstone 8
  • Opening the reference solution too early. You learn most from the milestones you finish yourself.
  • Tuning on the test set “just once”. It makes the final score optimistic, and the rubric marks it down.
  • Skipping the written parts (findings, model cards, runbooks). In real jobs these are what people read.