Learn

Start with a guide, then follow the six lessons and build a project at each step.

Machine Learning Engineer

What changes when a model has to work in production, the six modules to learn in order, and a project for each, grounded in Google's Rules of Machine Learning, scikit-learn's guide to common pitfalls and the classic paper on hidden technical debt in ML systems.

Validation, Leakage and Baselines

Three tested experiments that show how a model can look good and be useless: feature selection that leaks, a random split on time-ordered data, and a model that must beat a simple baseline. With the code and the numbers.

Read lesson 1

Features and Pipelines

Why a model that works in a notebook breaks in production, and how one scikit-learn pipeline fixes it. A tested example that preprocesses, cross-validates, saves, serves raw records and checks itself.

Read lesson 2

Model Families You'll Actually Use

Linear models, random forests and gradient boosting compared on two problems where the right answer is known. When the simple model wins, when trees earn their cost, and how one well-chosen feature closes the gap.

Read lesson 3

Packaging and Serving a Model

Save a trained pipeline with its version and facts, serve it behind a small validated API that logs every prediction, and test it like any other software. Runnable code with FastAPI, plus when a nightly batch job is the better choice.

Read lesson 4

Monitoring, Drift and Retraining

A tested monitoring script that watches a model's inputs, outputs and accuracy over three simulated weeks. Why input checks catch some problems and miss others, how to set alarm thresholds from your own data, and a retraining rule you can write down.

Read lesson 5

Reproducibility and Experiment Tracking

Make a model reproducible from one command that rebuilds the data, trains, evaluates against a baseline and records the run, then compare runs side by side. A tested, standard-library approach, and when a tracking tool like MLflow is worth adding.

Read lesson 6

AI Engineer

What AI engineers actually do, the six skills that matter most, the order to learn them in, and a project for every stage.

Calling a Language Model From Code

Your first AI engineering project: call a language model from Python, measure tokens and latency, and compare two models on the same task. Free, local, no API key.

Read lesson 1

Prompts, Structured Output and Your First Evaluation

Turn free-text answers into validated JSON your code can trust: write a clear prompt, constrain output with a schema, retry on errors, and measure accuracy on a small test set.

Read lesson 2

Retrieval, or Answering From Your Own Documents

Build a small retrieval-augmented assistant: chunk documents, embed them, find the relevant passages, answer with citations, and say 'I don't know' when nothing matches.

Read lesson 3

Tools and Agents, Built Safely

Let a model call functions: define tools, run the agent loop with a step limit, log every action, handle tool errors, and catch the mistakes agents still make.

Read lesson 4

Evaluation That Scales: Test Sets, Graders and Regression Checks

Turn one-off checks into an evaluation system: a test set in a file, code graders that normalise, a model-based judge you calibrate against your own labels, and a regression test that fails the build.

Read lesson 5

Production: Cost, Latency, Security and Monitoring

What changes when real users arrive: cache identical calls, handle timeouts, log every request, watch latency percentiles, and defend against prompt injection with structure rather than hope.

Read lesson 6