毕业项目Capstone project
The Semester 1 coursework. Take one real problem from framing to an evaluated, explained model. Four milestones, one rubric.
The capstone is the coursework for Semester 1. You take one real problem through the whole of Volume 1: frame it, get and clean the data, explore it, model it, validate it honestly, and explain the result to the person who'd use it.
It runs alongside the weekly material. Each milestone uses the chapters covered so far.
The brief
Choose a problem where a prediction would change a decision. Build the best model you can validate without leakage, and show what it's worth.
Your project must have:
- A real decision. Someone would act differently because of your model. Name them.
- Real data. At least 1,000 rows, with problems to clean. If you can
.fit()on day one with no cleaning, choose another dataset. - Uneven error costs. A false positive and a false negative cost different amounts. Put numbers on both.
- A clear target. It's known for past examples and measurable at a defined time.
Regression, classification, and forecasting projects all qualify. Clustering alone doesn't: it needs a label to validate against.
Don't reuse a lab dataset with the lab's own question. A new question on a lab dataset is fine.
Where to find data
- UCI Machine Learning Repository. Most datasets are CC BY 4.0.
- OpenML. Check each dataset's license.
- Government open-data portals, such as data.gov.uk, data.gov and data.europa.eu.
- Data from your own work, if you have permission to use it and you remove anything personal.
Check the license allows your use, and record it in your README.
Milestones
| Due | Milestone | What you hand in | Chapters |
|---|---|---|---|
| Week 4 | Proposal | Problem statement (Procedure 2.1), the dataset and its license, error costs, success criteria, and a baseline rule | 1 to 5 |
| Week 8 | Data report | Cleaning code and log, an EDA report with five findings, a leakage check, and a dummy baseline score | 6 to 11 |
| Week 12 | Model report | At least three model families compared under identical CV, a tuned best model, the metric choice and threshold from your costs | 12 to 16 |
| Week 15 | Final | Notebook, report, and a five-minute talk | All |
In week 10, part of the session goes to a modelling plan: your CV scheme, metric, baseline, and models. It isn't handed in. It becomes the start of the model report.
Each milestone gets feedback, not a grade. Only the final submission is marked. Use the feedback: it's the cheapest way to get to meets.
The final submission
- A repository with a README, your notebooks, a
requirements.txt, and the code to download the data. Don't commit large data files. - A report of no more than 2,500 words, written for the decision-maker. Lead with the recommendation. Put technical detail in an appendix.
- A five-minute talk, live or recorded, for the same audience. Recorded talks need captions.
Someone else must be able to run your notebooks top to bottom from a fresh clone and get your numbers.
The rubric
Each criterion is scored not yet, meets, or exceeds. You pass when all five are at meets or better.
| Criterion | Not yet | Meets | Exceeds |
|---|---|---|---|
| 1. Framing | The goal is "predict X". No decision, costs, or success criteria | A decision-maker, a target with a window and unit, costs in numbers, and a success threshold set before modelling | Also tests whether ML is needed at all (Procedure 2.3), and states what's out of scope and why |
| 2. Data and exploration | Cleaning is manual or unexplained. EDA is a gallery of charts | Cleaning runs from the raw download and every decision is logged. Five or more findings, each with a chart and a sentence. A leakage check is done | Also checks the cleaned data with assertions, and shows how an EDA finding changed a modelling choice |
| 3. Modelling and validation | One model, one split, or tuning on the test set | A dummy baseline and at least three model families under identical CV, all preprocessing inside pipelines, and the test set used once | Also uses nested CV or a time-ordered split where the data needs it, and compares models against fold-to-fold noise |
| 4. Evaluation and decision | Accuracy alone, or the default 0.5 threshold | A metric chosen from the costs, a threshold chosen from a cost sweep, a calibration check, and the expected value of using the model | Also includes an error analysis of where the model fails, and what that means for the decision-maker |
| 5. Communication and reproducibility | Notebooks don't run, or the report is a code walkthrough | Runs from a fresh clone. The report leads with the recommendation and its limits. Five-minute talk | Also a decision-maker could act on the report alone, and the README lets a stranger reproduce everything in under an hour |
Automatic checks before marking
Check these before anyone reads the work. A submission that fails one goes back without a mark:
- The notebooks run top to bottom from a fresh clone.
- The README, report, and
requirements.txtexist. - No fitted step sees the test set. Preprocessing sits inside pipelines.
How it's marked
In a class, your instructor marks the final against the rubric and gives written feedback per criterion. Peer review of milestones is encouraged. It doesn't replace the instructor's mark.
Studying alone, mark your own work against the rubric. Be strict: "meets" means every item in that cell is there. The worked example shows a full capstone marked this way. Then ask someone else to run your repository from a fresh clone. Swapping projects with another learner works well.
If a criterion is at not yet, fix it and resubmit once.
Using AI assistants
You may use AI assistants, as you would in a job. Say where and how in your README. You must be able to explain every line of code and every claim in your report. Instructors may ask you to.