Lessons
136 lessons in ai · advanced · page 1 of 6
Learning paths in ai
Browse all paths- AIadvanced
World Models: Learned Simulators for Planning and Training
A world model predicts what happens if an agent acts, so it can rehearse in imagination before acting for real. This cursus builds the idea from a working planner in code, through agents that learn inside compact latent dreams (World Models, PlaNet, Dreamer, MuZero), to interactive generative worlds learned from video, like Genie. It ends where the stakes are physical: training and testing robots and cars in learned simulators, and the failure modes, compounding error, exploited model errors, hallucinated physics, that decide when a simulator can be trusted.
4 lessons · certificate - AIadvanced
Continual Learning: Why Neural Networks Forget and How to Stop It
Train a network on something new and it often loses what it already knew. This cursus explains why, from conflicting gradients on shared weights to the stability-plasticity dilemma, then takes apart the three families of fixes: replay, regularisation such as EWC, and parameter isolation with adapters. You will learn to evaluate claims honestly across task-, domain- and class-incremental settings, and finish with large language models: continued pretraining, fine-tuning drift, LoRA, and when editing or retrieval beats training.
4 lessons · certificate - AIadvanced
Harness Engineering: Building the World an AI Agent Works In
The same model can score 15 points apart depending on what surrounds it. This course teaches the environment around an AI agent: how interface design and harness choice move results, how to make a repository legible with short instruction files and lint rules that explain their own fixes, how permissions, hooks and OS sandboxes contain an agent, and how to test a harness change with repeated trials, paired comparisons and pass^k instead of one lucky run.
4 lessons · certificate - AIadvanced
Deep Learning on Limit Order Book Data
At a one-event horizon, 92 percent of mid-price labels are exactly no-change, so a model that always predicts flat scores 92 percent accuracy. That single number explains most of the gap between published order book results and what happens on a trading desk. This path covers what the book actually contains, what the architectures assume, why results fail to replicate, and the cost hurdle that decides whether a real edge is worth anything.
4 lessons · certificate - AIadvanced
Reinforcement Learning for Trade Execution and Market Making
A classical execution schedule is an open-loop policy: it commits to a plan before seeing anything, and reinforcement learning's entire value here is closing that loop. This path measures what closing it is actually worth, shows how a mis-sized penalty makes leaving part of the order unexecuted rationally optimal, and demonstrates that one unverifiable queue assumption moves the simulated fill rate by a factor of two. Every figure is computed.
4 lessons · certificate - AIadvanced
Financial Machine Learning: Building a Dataset That Does Not Lie
Shuffled cross-validation reports 54 percent accuracy on market data containing no signal whatsoever, and that number is why competent machine learning so often fails on markets. This path fixes the dataset rather than the model: labels that describe trades someone would actually place, features that are stationary without being amnesiac, and a validation scheme that returns chance when there is nothing there. Every figure in it is computed and reproducible.
4 lessons · certificate
Individual lessons
- AIadvanced
Dreaming in Latent Space: World Models, PlaNet, Dreamer and MuZero
How agents learn compact latent world models from pixels and plan inside them. Covers Ha and Schmidhuber's dream-trained controller, PlaNet's recurrent state-space model, Dreamer's actor-critic in imagination with lambda-returns in code, the later Dreamer versions, and MuZero's value-equivalent model.
12 steps·~18 min - AIadvanced
Continual Learning in Large Language Models: Continued Pretraining, Drift, and Editing
Every stage of a language model's life trains the same weights on new data, so every stage can erase the last. Learn the continued-pretraining recipe of re-warming, re-decaying and replay, how fine-tuning erodes skills and safety, why LoRA and on-policy RL forget less, and when editing or retrieval beats training.
10 steps·~15 min - AIadvanced
Measuring Continual Learning: Scenarios, Transfer Metrics, and Honest Baselines
The same method can score 99% or 21% on one benchmark depending on what the model is told at test time. Learn the task-, domain- and class-incremental scenarios, the accuracy matrix with backward and forward transfer, and the protocol choices and baselines that make a continual learning result trustworthy.
9 steps·~14 min - AIadvanced
Fixing Forgetting: Replay, Regularisation, and Parameter Isolation
The three families of continual learning methods, taken apart: experience and generative replay, gradient projection with GEM, weight penalties from EWC and synaptic intelligence, distillation, and per-task adapters. Includes a runnable PyTorch comparison of EWC and replay, and a table for choosing among them.
9 steps·~14 min - AIadvanced
Measuring a Harness Change: Trials, Error Bars and pass^k
Every harness change is a hypothesis. Learn how evaluation harnesses record agent runs, why one run is one noisy sample, how paired comparisons and repeated trials separate real gains from luck, and when to report pass@k versus pass^k, with computed simulations.
10 steps·~15 min - AIadvanced
Permissions, Sandboxes and Hooks: Containing an AI Agent
An agent with a shell can make destructive mistakes or follow injected instructions. Learn the four layers of control, from instruction files to OS sandboxes, why command-pattern rules are not a boundary, how hooks add deterministic checks, and how to design out the lethal trifecta.
11 steps·~17 min - AIadvanced
Evaluating a Book Model Honestly
If your cost per round trip equals the move you are trying to capture, you need 100 percent directional accuracy to break even. This lesson computes that hurdle, replaces accuracy with metrics tied to a tradeable decision, and covers the capacity and latency limits that decide whether a real edge is worth anything.
10 steps·~15 min - AIadvanced
Why Reported Order Book Results Do Not Replicate
At a one-event horizon, 92 percent of mid-price labels are exactly no-change, so a model that always predicts flat scores 92 percent accuracy. This lesson computes that baseline across horizons and works through the four mechanisms that turn a genuine measurement into a number nobody can reproduce.
10 steps·~15 min - AIadvanced
Architectures for Order Book Data, and Why They Help Less Than Expected
Convolutional and recurrent networks have been applied to order book data with published success, and the architectures encode real assumptions about the book's structure. This lesson explains what each one assumes, why the gains over simple baselines are smaller than headline numbers suggest, and where the modelling effort is better spent.
10 steps·~15 min - AIadvanced
What Is Actually in an Order Book, and What a Model Can See
Before choosing an architecture you have to decide what the input is, and an order book offers several incompatible representations that are not equally informative. This lesson covers what each data level contains, why raw prices are the wrong features, and the representation choices that decide more than the model does.
10 steps·~15 min - AIadvanced
Market Making: Inventory, Adverse Selection, and What RL Adds
A market maker quotes both sides and profits from the spread, but every fill leaves an unwanted position and the counterparties who trade most eagerly are the ones who know something. This lesson simulates the inventory-skew trade-off, showing a 63 percent cut in exposure for 2.5 percent of profit, and locates where a learned policy genuinely helps.
10 steps·~15 min - AIadvanced
The Simulator Problem: Why a Backtest Cannot Answer This
Reinforcement learning needs an environment that responds to the agent, and historical market data is a fixed recording that does not. This lesson shows that replaying the same day gives a fill rate anywhere from 38 to 73 percent depending on an assumption the data cannot settle, and covers what to do about it.
10 steps·~15 min - AIadvanced
Reward Design: Where Execution Agents Go Wrong
An agent optimises the reward you wrote, not the objective you meant, and in execution the gap between those is unusually easy to open. This lesson computes how a mis-sized penalty makes leaving part of the order unexecuted rationally optimal, and covers the shaping that provably does not change the policy.
10 steps·~15 min - AIadvanced
Framing Execution as a Markov Decision Process
A static execution schedule is an open-loop policy: it commits to a plan before seeing anything. This lesson formulates execution as an MDP so the plan can react, and computes the ceiling on what any adaptive policy could win, which turns out to collapse as market impact grows.
10 steps·~15 min - AIadvanced
Validation: Measuring Anything at All
Shuffled cross-validation reports 54 percent accuracy on data containing no signal, because neighbouring samples share their futures. This lesson builds purging, embargo and sample uniqueness weights, shows the illusion scaling with label overlap and vanishing when the fix is applied, and covers why a single walk-forward path is weak evidence.
10 steps·~15 min - AIadvanced
Features: Stationarity Without Erasing the Memory
Prices are non-stationary and returns are stationary but forget everything, so the standard fix throws away the level information a model needed. This lesson builds fractional differentiation, which makes the choice a dial rather than a switch, and shows by computation that most of the memory can be kept while still passing a stationarity test.
10 steps·~15 min - AIadvanced
Labelling: Deciding What You Are Actually Predicting
The default label, the sign of the return over a fixed horizon, describes a trade nobody would take: no stop, no target, and a holding period chosen by the modeller rather than by the market. This lesson builds the triple-barrier method and meta-labelling, and shows with computed numbers how much of a fixed-horizon dataset is fiction.
10 steps·~15 min - AIadvanced
Why Standard Machine Learning Fails on Market Data
Machine learning practice assumes independent samples, a stable data-generating process, and an environment that does not react to you. Financial data violates all three, and the result is models that validate beautifully and lose money. This lesson establishes what is actually broken before the rest of the course fixes it.
10 steps·~15 min - AIadvanced
End to End: What the Cascade Throws Away
Speech in, text, model, text, speech out is the standard architecture and it discards everything not in the words: emphasis, emotion, hesitation, overlap. End-to-end models keep it by never routing through text, and pay with a token rate roughly 185 times higher and far less training data. This lesson covers the trade, and why interleaving is the pragmatic answer.
9 steps·~14 min - AIadvanced
Synthesis: Why Three Seconds Is Enough to Clone a Voice
Once audio is a sequence of tokens, generating speech becomes the same shape of problem as generating text, and the whole language modelling toolkit transfers. That reframing produced zero-shot voice cloning from about three seconds of audio. This lesson covers the codec language model approach, why so little reference suffices, the flow-matching alternative, and what the capability implies.
9 steps·~14 min - AIadvanced
Recognition: Three Ways to Solve the Alignment Problem
Speech recognition's hard problem is that audio and text have different lengths and nobody labelled which frame goes with which letter. CTC, RNN-T and attention encoder-decoders are three answers, and which one a system uses decides whether it can stream. This lesson covers all three, why Whisper's weak supervision worked, and the failure that follows from a recogniser containing a language model.
9 steps·~14 min - AIadvanced
Turning Sound Into Tokens
Before a model can process speech it has to be discretised, and audio resists that harder than text does. This lesson covers why raw waveforms are the wrong representation, how neural audio codecs learn a discrete one, what residual vector quantization actually does, and the arithmetic that governs every speech model: a minute of talking is around 195 text tokens or 36,000 audio tokens.
9 steps·~14 min - AIadvanced
Finding the Next One: Fusion Beyond Attention
The pattern that made attention slow recurs across the stack, and once you know what to look for it is easy to find. This lesson applies the diagnosis to normalisation layers, optimizer steps, loss functions and inference decoding, covers why fused attention silently stops applying when a model deviates slightly from standard, and gives the profiling routine that decides where to look first.
10 steps·~15 min - AIadvanced
Writing Fused Kernels Without Writing CUDA
The reason most teams never fuse anything is that CUDA asks you to manage threads, shared memory and synchronisation by hand. Triton moves the unit of programming from a thread to a block and hands the rest to a compiler. This lesson covers what that buys, what it still asks of you, how to decide a kernel is worth writing, and how to be sure it is correct.
10 steps·~15 min

