Animation gallery
82 hand-made animations and 225 animated diagrams. Each one plays a concept step by step: press Play, or step through it at your own pace. Most show the objects of the idea moving (chunks being ranked, points finding their group, a loss curve falling); a few follow a request between systems. Many include a second scenario that shows what goes wrong.
Every animation also has a numbered list of its steps, so it can be read without the motion, without JavaScript and in print. Numbers in the animations are made up unless the lesson says otherwise.
Part 1: The big picture (5 hand-made, 9 animated diagrams)
- Watch rules break and a learned filter take over
Scene
In the lesson: What AI, machine learning, deep learning and generative AI are
- Watch one project go round the lifecycle
Scene · 2 scenarios
In the lesson: How an AI or ML project runs from idea to production
- Watch where an API key should live
Scene · 2 scenarios
In the lesson: Set up your laptop for AI and ML in Python and .NET
- Watch Python run a file
Scene · 2 scenarios
In the lesson: Python in a nutshell (for .NET developers)
- Watch C# build, then run
Scene · 2 scenarios
In the lesson: C# in a nutshell (for Python developers)
Part 2: Data (4 hand-made, 5 animated diagrams)
- Watch the data split into three sets
Scene · 2 scenarios
In the lesson: Data basics: types, features, labels and splits
- Watch labelling agreement improve
Scene
In the lesson: Collecting and labelling data, with SQL
- Watch a messy table get cleaned
Scene
In the lesson: Cleaning and exploring data
- Watch one pipeline fitted once
Scene · 2 scenarios
In the lesson: Feature engineering: turning raw data into model inputs
Part 3: Machine learning (20 hand-made, 31 animated diagrams)
- Watch a line learn to fit the points
Scene · 2 scenarios
In the lesson: How a model learns: loss, training and overfitting
- Watch a line beat the baseline
Scene
In the lesson: Regression: predicting a number
- Watch the threshold change the decisions
Scene · 2 scenarios
In the lesson: Classification: picking a category
- Watch the normal equation solve a line
Scene
In the lesson: Linear models under the hood
- Watch bagging vote
Scene
In the lesson: The main ML algorithms and when to use each
- Watch AdaBoost re-weight its mistakes
Scene
In the lesson: More ensemble methods, AdaBoost by hand
- Watch k-means find three groups
Scene
In the lesson: Unsupervised learning: groups, compression and anomalies
- Watch DBSCAN grow a cluster
Scene
In the lesson: Clustering beyond k-means
- Watch a 2-D picture get checked
Scene
In the lesson: Seeing high-dimensional data
- Watch a density estimate find a rare value
Scene
In the lesson: Anomalies, patterns and density
- Watch breadth-first search spread
Scene
In the lesson: Search and games, the classic AI way
- Watch backtracking colour a map
Scene
In the lesson: Logic, constraints and planning
- Watch a hidden factor reverse a result
Scene
In the lesson: Cause and effect, an introduction to causal inference
- Watch a Kalman filter update its estimate
Scene
In the lesson: Thinking in probabilities
- Watch five-fold cross-validation
Scene
In the lesson: Measuring models honestly
- Watch a fair comparison of two models
Scene
In the lesson: Comparing models and trusting probabilities
- Watch the two errors diagnose a model
Scene · 3 scenarios
In the lesson: Bias, variance and the limits of learning
- Watch tuning without touching the test set
Scene · 2 scenarios
In the lesson: Improving and explaining models
- Watch walk-forward validation
Scene · 2 scenarios
In the lesson: Time-series forecasting
- Watch taste numbers fill an empty table
Scene
In the lesson: Recommender systems
Part 4: Deep learning (18 hand-made, 36 animated diagrams)
- Watch one training step
Scene
In the lesson: Neural networks in plain words
- Watch straight lines become a curve
Scene
In the lesson: Neural networks in plain words
- Watch values go forward and blame go back
Scene · 2 scenarios
In the lesson: Backpropagation and automatic differentiation
- Watch early stopping and gradient clipping
Scene · 2 scenarios
In the lesson: Training deep networks well
- Watch a filter find the edges
Scene · 2 scenarios
In the lesson: Computer vision: classification, detection and segmentation
- Watch similar images pulled together
Scene
In the lesson: More computer vision, filters, mixing and metric learning
- Watch a recurrent network read
Scene
In the lesson: Text and sequences: tokens, embeddings and RNNs
- Watch a sentence go through the pipeline
Scene
In the lesson: Classic text processing and sequence tagging
- Watch a token pass through one block
Scene
In the lesson: Transformers and attention
- Watch "it" decide what to look at
Scene
In the lesson: Transformers and attention
- Watch two networks push each other
Scene · 2 scenarios
In the lesson: Generative models: autoencoders, GANs and diffusion
- Watch noise turn into a picture
Scene · 2 scenarios
In the lesson: Generative models: autoencoders, GANs and diffusion
- Watch unstable training, then the fixes
Scene · 2 scenarios
In the lesson: More generative models, VAEs, flows and diffusion in detail
- Watch speech become text
Scene · 2 scenarios
In the lesson: Speech and audio: recognition and text-to-speech
- Watch an agent learn a grid world
Scene · 2 scenarios
In the lesson: Reinforcement learning
- Watch one Q-value update
Scene
In the lesson: Reinforcement learning: value methods
- Watch a baseline sharpen the signal
Scene · 2 scenarios
In the lesson: Reinforcement learning: policy methods
- Watch information spread through a graph
Scene
In the lesson: Graph neural networks: learning from connections
Part 5: Large language models (14 hand-made, 36 animated diagrams)
- Watch a reply being written
Scene · 2 scenarios
In the lesson: How large language models work
- Watch prefill and decode
Scene
In the lesson: How large language models work
- Watch byte-pair encoding merge tokens
Scene
In the lesson: Tokens and sampling settings
- Watch temperature change the choice
Scene · 2 scenarios
In the lesson: Tokens and sampling settings
- Watch a model squeeze into GPU memory
Scene
In the lesson: Hardware for AI: CPU, GPU, CUDA and putting a model to work
- Watch a model design come together
Scene
In the lesson: Designing a language model
- Watch a small language model learn
Scene
In the lesson: Train a small language model on your laptop
- Watch the right scaling tool get picked
Scene
In the lesson: From laptop to big hardware: scaling training
- Watch QLoRA train only an adapter
Scene
In the lesson: Fine-tuning: SFT, LoRA, QLoRA and preference tuning
- Watch DPO shift a preference
Scene
In the lesson: Fine-tuning: SFT, LoRA, QLoRA and preference tuning
- Watch a draft model speed up decoding
Scene
In the lesson: Running language models on your own machine
- Watch a benchmark score get inflated
Scene
In the lesson: Evaluating language models
- Watch the diagonal rise
Scene
In the lesson: How embedding models are trained
- Watch replay prevent forgetting
Scene · 2 scenarios
In the lesson: Learning paradigms beyond plain training
Part 6: Building AI applications (15 hand-made, 80 animated diagrams)
- One request to an LLM API, and what can go wrong
Request path · 4 scenarios
In the lesson: Calling an LLM from your application
- A tool call, step by step
Request path · 2 scenarios
In the lesson: Calling an LLM from your application
- Watch a repeated prefix get reused
Scene · 2 scenarios
In the lesson: Prompt engineering that works in production
- Watch a question find its passages
Scene
In the lesson: Embeddings and vector search
- Watch a document become searchable
Scene · 2 scenarios
In the lesson: RAG: answering from your own documents
- Watch the evidence travel: one question through RAG
Scene · 4 scenarios
In the lesson: RAG: answering from your own documents
- Watch two searches merge
Scene
In the lesson: Advanced RAG: chunking, hybrid search, re-ranking and evaluation
- The refund workflow, with every way it can end
Request path · 4 scenarios
In the lesson: Tools and agents with human approval
- Watch the agent loop run, and stop
Scene · 2 scenarios
In the lesson: Tools and agents with human approval
- A framework runs a tool call over MCP
Request path · 2 scenarios
In the lesson: AI frameworks and MCP: what to use in Python and .NET
- Watch a damage claim go through
Scene · 2 scenarios
In the lesson: Multimodal AI apps: images, documents and voice
- Watch the release gate decide
Scene · 2 scenarios
In the lesson: Evaluating AI applications
- Watch a prompt injection hit the defences
Scene · 2 scenarios
In the lesson: Security for AI applications
- Watch a fairness problem get found and fixed
Scene
In the lesson: Responsible AI: fairness, privacy, transparency and oversight
- The same email, two ways
Scene · 2 scenarios
In the lesson: Generative AI and Agentic AI: the whole picture
Part 7: Production (6 hand-made, 28 animated diagrams)
- One prediction request, and a bad one
Request path · 2 scenarios
In the lesson: Serving a model as an API
- Watch the promotion gate
Scene · 3 scenarios
In the lesson: MLOps: versioning, pipelines and safe releases
- Watch rows get checked at the door
Scene · 2 scenarios
In the lesson: Data validation and technical debt in ML systems
- Watch drift get caught
Scene
In the lesson: Monitoring models and AI apps in production
- Watch requests get routed
Scene · 2 scenarios
In the lesson: Speed, cost and scaling
- Retries with growing waits, then a fallback
Request path · 2 scenarios
In the lesson: Production architecture for AI systems