AI & ML Quick Path Progress

Simulation lab

61 live simulations, one or more in most lessons. Each lets you change a setting and watch the calculation respond. Every simulation asks you to guess first, offers small goals to try, and says what it leaves out. The numbers are made up, and each one is checked against a Python program.

A simulation needs JavaScript. Without it, the lesson still shows what the simulation is about and what to watch.

Part 1: The big picture (2)

  • Rules against learning

    Why do hand-written rules break on new messages, and what changes when the filter learns from examples?

    In the lesson: What AI, machine learning, deep learning and generative AI are · 2 goals to try

  • Inject a fault and see what repeats

    When something goes wrong in a machine learning project, how far back does the work have to go?

    In the lesson: How an AI or ML project runs from idea to production · 1 goal to try

Part 2: Data (4)

  • Random split, time split and a leaked column

    Why can a model score well on a test and still fail in real use?

    In the lesson: Data basics: types, features, labels and splits · 2 goals to try

  • Wrong labels and annotator agreement

    What do mistakes in the training labels do to a model?

    In the lesson: Collecting and labelling data, with SQL · 1 goal to try

  • Missing values and an extreme value

    What do the ways of handling missing values and extreme values do to a summary?

    In the lesson: Cleaning and exploring data · 2 goals to try

  • Scaling changes who is closest

    Why does a model need its columns on a similar scale, and what is wrong with coding a colour as 1, 2, 3?

    In the lesson: Feature engineering: turning raw data into model inputs · 1 goal to try

Part 3: Machine learning (16)

  • Gradient descent: a ball rolling down a curve

    How does a model learn by moving a number downhill, and what does the learning rate change?

    In the lesson: How a model learns: loss, training and overfitting · 3 goals to try

  • Fit a line by hand, then compare with the best fit

    How does a regression line get chosen, and how much can one odd point or a penalty change it?

    In the lesson: Regression: predicting a number · 2 goals to try

  • Threshold, confusion matrix and ROC curve

    A classifier gives a chance, not a yes or no. Where should the line be drawn, and what does each choice cost?

    In the lesson: Classification: picking a category · 2 goals to try

  • Supervised algorithms on the same points

    Does one algorithm win on every kind of data?

    In the lesson: The main ML algorithms and when to use each · 3 goals to try

  • Clustering: k-means and DBSCAN

    How do clustering methods find groups when nobody gave them labels, and when do they fail?

    In the lesson: Unsupervised learning: groups, compression and anomalies · 2 goals to try

  • PCA: the axis that keeps the most spread

    How can two numbers per point become one with the least loss, and what is a principal component?

    In the lesson: Unsupervised learning: groups, compression and anomalies · 1 goal to try

  • Finding anomalies with a distance score

    How do we find the unusual points in data when nobody has labelled them?

    In the lesson: Anomalies, patterns and density · 1 goal to try

  • Searching a maze

    How do different search methods find a way through a maze, and what does each one cost?

    In the lesson: Search and games, the classic AI way · 1 goal to try

  • Choosing a move in a two-player game

    How does a program choose a move when an opponent will answer it, and how can it skip moves that cannot matter?

    In the lesson: Search and games, the classic AI way · 1 goal to try

  • Solving a puzzle by backtracking

    How does a program solve a puzzle with rules, and why does the order of its choices matter?

    In the lesson: Logic, constraints and planning · 1 goal to try

  • When a hidden cause fools the averages

    How can a treatment that is better in every group look worse overall?

    In the lesson: Cause and effect, an introduction to causal inference · 1 goal to try

  • How likely is illness after a positive test?

    Why does a positive result from a good test often still mean "probably fine"?

    In the lesson: Thinking in probabilities · 2 goals to try

  • Cross-validation, fold by fold

    How can all the data be used for both training and testing, and why is one score from one split not enough?

    In the lesson: Measuring models honestly · 1 goal to try

  • Bias, variance and the wiggly curve

    Why does a more flexible model do better on training data but sometimes worse on new data?

    In the lesson: Bias, variance and the limits of learning · 2 goals to try

  • Forecasting a monthly series

    How do we test a forecast fairly, and which simple methods beat which?

    In the lesson: Time-series forecasting · 2 goals to try

  • A recommender: guess a rating from similar users

    How can a system guess what you will like from what people like you liked?

    In the lesson: Recommender systems · 2 goals to try

Part 4: Deep learning (16)

  • Train a small neural network

    What must a network be able to do before it can learn a pattern that no straight line can separate?

    In the lesson: Neural networks in plain words · 3 goals to try

  • Backpropagation on one neuron

    How does a network work out, for every weight, which way to change it?

    In the lesson: Backpropagation and automatic differentiation · 2 goals to try

  • The optimiser race on a long narrow valley

    Why do people use momentum or Adam instead of plain gradient descent, and what does a noisy gradient do?

    In the lesson: Training deep networks well · 2 goals to try

  • A filter sliding over an image

    How does a filter find edges and shapes in an image, and what do stride, padding and pooling change?

    In the lesson: Computer vision: classification, detection and segmentation · 2 goals to try

  • A running state that reads a sentence

    How can a network read a sentence one word at a time and still remember the start?

    In the lesson: Text and sequences: tokens, embeddings and RNNs · 1 goal to try

  • Counting words and weighting them by rarity

    How can a program compare texts with nothing but word counts, and why do rare words matter more?

    In the lesson: Classic text processing and sequence tagging · 1 goal to try

  • From words to numbers

    How does a Transformer turn a sentence into numbers, and why does it add a second set of numbers for position?

    In the lesson: Transformers and attention · 1 goal to try

  • One attention layer, step by step

    When a word is about to be followed by a verb, which earlier word does the model look at, and how do the numbers decide it?

    In the lesson: Transformers and attention · 2 goals to try

  • One Transformer block, stage by stage

    What happens to one word's numbers inside a Transformer block, and what breaks when a part is removed?

    In the lesson: Transformers and attention · 1 goal to try

  • Training against using

    Why can a Transformer learn from every word of a sentence at once, but must write one word at a time?

    In the lesson: Transformers and attention · 1 goal to try

  • Autoencoder: squeeze, then rebuild

    What is an autoencoder learning when it squeezes data through a narrow middle?

    In the lesson: Generative models: autoencoders, GANs and diffusion · 1 goal to try

  • Diffusion: add noise, then guess it back

    How can a model create things by removing noise, and what happens when its noise guess is wrong?

    In the lesson: Generative models: autoencoders, GANs and diffusion · 1 goal to try

  • From a sound wave to a spectrogram

    How does a computer turn a sound wave into a picture of its pitches over time, and what does the window size trade away?

    In the lesson: Speech and audio: recognition and text-to-speech · 2 goals to try

  • Q-learning in a grid world

    How can a learner discover a good path when the only reward comes at the end?

    In the lesson: Reinforcement learning · 1 goal to try

  • Slot machines and exploring

    Should a learner keep using what looks best, or try other options too?

    In the lesson: Reinforcement learning · 2 goals to try

  • Messages passing round a graph

    How does information travel across a graph, and what happens after many rounds?

    In the lesson: Graph neural networks: learning from connections · 1 goal to try

Part 5: Large language models (9)

  • How a Transformer writes one word at a time

    How does a Transformer write text one word at a time, and what does the cache save?

    In the lesson: How large language models work · 1 goal to try

  • How text becomes tokens

    Why are common words one token while rare words are split into pieces?

    In the lesson: Tokens and sampling settings · 2 goals to try

  • How a language model writes text

    What do temperature, top-k and top-p change when a model chooses its next token?

    In the lesson: Tokens and sampling settings · 2 goals to try

  • Build a model and see what it costs

    How do the number of layers, the width and the vocabulary decide how big a language model is, and what does that cost in memory?

    In the lesson: Designing a language model · 2 goals to try

  • Watch a tiny model learn to write

    What does it mean for a language model to learn, and how can we see it happen?

    In the lesson: Designing a language model · 1 goal to try

  • LoRA: a big change from two thin matrices

    Why can a huge model be adapted by training only a tiny number of new numbers?

    In the lesson: Fine-tuning: SFT, LoRA, QLoRA and preference tuning · 1 goal to try

  • Quantisation: fewer bits per weight

    How much accuracy do we lose when each weight is stored in fewer bits, and how much space do we save?

    In the lesson: Fine-tuning: SFT, LoRA, QLoRA and preference tuning · 1 goal to try

  • Scoring language models

    How do we score a language model, and why does the scoring method matter?

    In the lesson: Evaluating language models · 2 goals to try

  • Training embeddings: pull together, push apart

    How does a model learn to place related words close together without anyone telling it what the words mean?

    In the lesson: How embedding models are trained · 1 goal to try

Part 6: Building AI applications (9)

  • A call to a language-model service

    What happens in a call to a hosted language model, and what do failures and retries cost?

    In the lesson: Calling an LLM from your application · 1 goal to try

  • Embeddings and vector search

    How does a search by meaning find related items, and what changes when you fetch more of them?

    In the lesson: Embeddings and vector search · 1 goal to try

  • A retrieval pipeline, step by step

    Why does the way a document is split into chunks decide whether the model ever sees the answer?

    In the lesson: RAG: answering from your own documents · 2 goals to try

  • Why long chains of steps fail

    Why does an agent that is usually right at each step often fail at the whole task?

    In the lesson: Tools and agents with human approval · 1 goal to try

  • Messages between an assistant, a tool server and a service

    How does an assistant app find out what a tool can do, and call it?

    In the lesson: AI frameworks and MCP: what to use in Python and .NET · 1 goal to try

  • An image cut into patches

    How does a model that reads text turn a picture into tokens, and what does it cost?

    In the lesson: Multimodal AI apps: images, documents and voice · 1 goal to try

  • How many test cases do you need?

    How big must a test set be before a score can be trusted?

    In the lesson: Evaluating AI applications · 1 goal to try

  • Prompt injection and three guards

    How can text that an assistant reads take control of it, and which guards help?

    In the lesson: Security for AI applications · 1 goal to try

  • One threshold or one per group

    What happens to different groups when a decision uses one score threshold, and what can be changed?

    In the lesson: Responsible AI: fairness, privacy, transparency and oversight · 1 goal to try

Part 7: Production (5)

  • Serving, queues, batching and scaling

    What decides whether a model service keeps up, and what does keeping up cost?

    In the lesson: Serving a model as an API · 2 goals to try

  • A canary release with a rollback gate

    How can a new model be released without risking everyone at once?

    In the lesson: MLOps: versioning, pipelines and safe releases · 2 goals to try

  • Data checks and a schema change

    How do checks on incoming data protect a model, and what do they miss?

    In the lesson: Data validation and technical debt in ML systems · 2 goals to try

  • Watching for drift

    How does a monitor notice that the world has changed, and what does it cost to notice sooner?

    In the lesson: Monitoring models and AI apps in production · 1 goal to try

  • Following a request, and breaking a part

    What happens to a person's request when one part of a system stops working?

    In the lesson: Production architecture for AI systems · 2 goals to try