ML Projects: Introduction
The ten earlier courses of the Machine Learning track each teach one part of the craft: data, preparation, algorithms, training, evaluation, deep learning, vision, language and production. A real project needs all of them at once, in the right order, with nobody telling you which lesson applies next. This course is where you practise that. It contains fifteen guided projects, from a beginner's house-price model to an expert's production ML platform, plus the curriculum's first practical assignment and a 24-week study plan that maps the whole track onto a half-year schedule.
Nothing here is new technique. Every project links to the lesson that taught the method it uses, so when a step feels unfamiliar, follow the link, read that lesson again and come back. What is new is the judgement: which metric matches the user's goal, which baseline a model must beat, how to split the data so that the score means something, what to look at when the model is wrong, and how to hand the result to someone who was not in the room.
Every project follows the same loop
The project workflow lesson turns the loop into a checklist with a write-up template, and each project fills it in. The order matters more than any single step: success criteria are written before any result is seen, the test set is opened once, and the error analysis decides what to try next.
Why the evaluation protocol is half the project
A score is only as good as the way it was measured. Here is one small example of what can go wrong. A shop's demand rises over three years; a model predicts a day's sales from the day's price and the number of visitors. A random split mixes days from the future into training, while a time split trains on the first two years and tests on the third, which is how the model would actually be used.
import numpy as np
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_absolute_error
from sklearn.model_selection import train_test_split
rng = np.random.default_rng(0)
days = np.arange(3 * 365)
visitors = rng.poisson(200 + 0.15 * days) # traffic grows over three years
price = rng.uniform(8, 12, len(days))
sales = 0.3 * visitors - 4 * (price - 10) + rng.normal(0, 4, len(days))
X = np.column_stack([visitors, price])
model = RandomForestRegressor(n_estimators=100, random_state=0)
X_tr, X_te, y_tr, y_te = train_test_split(X, sales, test_size=365, random_state=0)
random_mae = mean_absolute_error(y_te, model.fit(X_tr, y_tr).predict(X_te))
cut = 2 * 365 # train on years 1-2, test on year 3
time_mae = mean_absolute_error(sales[cut:], model.fit(X[:cut], sales[:cut]).predict(X[cut:]))
print(f"random split, MAE on 365 mixed days: {random_mae:.2f}")
print(f"time split, MAE on year 3: {time_mae:.2f}")
above = (visitors[cut:] > visitors[:cut].max()).mean()
print(f"visitors: max in years 1-2 {visitors[:cut].max()}, mean in year 3 {visitors[cut:].mean():.0f}")
print(f"year-3 days busier than any day in years 1-2: {above:.0%}")random split, MAE on 365 mixed days: 3.72
time split, MAE on year 3: 6.31
visitors: max in years 1-2 348, mean in year 3 335
year-3 days busier than any day in years 1-2: 30%
The random split promises an error of 3.72; the honest time split shows 6.31, about 70 % more. The reason is the visitor count: in year 3, 30 % of the days are busier than any day in years 1–2, and a random forest cannot predict beyond the targets it saw in training (its leaves average training values). The random split hid this, because it put year-3 days in the training set. Every project in this course states its split and says why, and several (house prices, fraud, sales forecasting) are built around a time split for exactly this reason (time-series backtesting, leakage rules).
The fifteen projects
| # | Project | Level | Main skills | Built on |
|---|---|---|---|---|
| First assignment | beginner | the whole lifecycle once, on a mixed-type table | ML Foundations | |
| 1 | House prices | beginner | regression on tabular data, time split, prediction intervals | Classical ML Algorithms |
| 2 | Student performance | beginner | classification, thresholds, calibration, fairness slices | Training & Evaluation |
| 3 | Customer segmentation | beginner | clustering, features from a transaction log | Classical ML Algorithms |
| 4 | Dataset quality analyzer | beginner | data validation and cleaning as a pipeline gate | Data for ML |
| 5 | Email spam detection | intermediate | text processing and classification | NLP & Transformers |
| 6 | Credit card fraud | intermediate | imbalanced learning, cost-based thresholds | Data Preparation |
| 7 | Sales forecasting | intermediate | time-series features and backtesting | Training & Evaluation |
| 8 | Image classification | intermediate | CNN and augmentation | Deep Learning |
| 9 | Transfer learning classifier | intermediate | pretrained models with few labels | Training Strategies |
| 10 | YOLO object detection | advanced | detection and annotation | Computer Vision |
| 11 | Person tracking | advanced | detection and tracking, counting | Computer Vision |
| 12 | Person re-identification | advanced | embeddings and metric learning | Computer Vision |
| 13 | Fine-tuned language model | advanced | transformers and fine-tuning | NLP & Transformers |
| 14 | RAG application | advanced | embeddings and retrieval | NLP & Transformers |
| 15 | Production ML platform | expert | pipelines, deployment and monitoring | Deployment & MLOps |
The levels are the curriculum's. You do not have to go in order: pick the project closest to the work you want to do, check its prerequisites in the "Built on" column, and start. The study plan suggests when each project fits into a 24-week schedule. Some projects have a smaller cousin in an earlier course (house prices and customer segments in the algorithms mini project, a quality analyzer in the data course's, a tracker in computer vision); each project here says what it adds.
How examples run in this course
- In your browser: NumPy, pandas, SciPy, scikit-learn, XGBoost, LightGBM, imbalanced-learn, scikit-image, OpenCV and FastAPI. All tabular, text-classification and tracking projects, every evaluation and every service step run here; edit the code and run it again.
- Recorded: examples that use PyTorch, torchvision, Ultralytics YOLO, Hugging Face Transformers, sentence-transformers or MLflow carry a Recorded badge and show the output of a real run on CPU in a Docker image with pinned versions. The models are small (ResNet-18, YOLOv8n, a 2-layer BERT, MiniLM) so that each run takes seconds.
- Data is generated in code with a fixed seed, or comes with scikit-learn, scikit-image or the recorded image. Each project says where real data would come from and what its licence and privacy rules would be. Scores on generated data tell you about the generator and the method, not about the real world; the write-ups say so.
- Labs from earlier courses reappear where a project needs them: the threshold and ROC lab, the imbalance and leakage labs, the drift monitor.
Before you start
You should be comfortable with the material of the three prerequisite courses, Deployment & MLOps, Computer Vision and NLP & Transformers, or at least with the earlier courses they build on. If a beginner project already feels easy, skim it for the evaluation and write-up steps and move on; if an advanced one feels hard, the links in its first paragraph say what to revisit. The Ten Principles of the first course are worth rereading now: each project is an exercise in applying them.
Test yourself
In the example, why is the random-split error (3.72) lower than the time-split error (6.31)?
- The random split used more trees
- The random split put year-3 days into training, so the model never had to predict beyond the traffic it had seen
- The time split has fewer test days
- Random forests always do better on shuffled data
When should a project's success criteria be written down?
- After the first model, so they are realistic
- Before any result is seen
- After the test score is known
- Only if the project is deployed
What may an error analysis change?
- The data, the features and the model
- The test set, so that it contains fewer hard cases
- The metric, until the model passes
- Nothing; it is only for the report