Learn machine learning, maths and AI by doing.
Not by reading. Every equation is wired to a live 3D scene you can rotate, drag and run. Hover a symbol and it lights up in the viewport. Write the optimizer in Python and watch your own code roll down the loss surface.
Hover the symbols. The scene on the right responds.
Built from Mathematics for Machine Learning, ISLR, Goodfellow's Deep Learning, Attention Is All You Need and the current AI and ML exam guides from Google Cloud, AWS, Microsoft, NVIDIA and Databricks.
Maths, machine learning and AI. Start where you are.
New to all of it? Begin with the maths. Know the maths already? Skip ahead. Every path is the same kind of lesson: change the variables, watch what happens, then write the code.
Maths
Learn the maths behind machine learning
Start from school-level functions and build up vectors, matrices, derivatives, gradients and probability. Then bend space with linear algebra, calculus and information theory in 3D.
Machine learning
Learn machine learning from first principles
Race optimizers down a loss surface, fit regressions and tree ensembles, then train neural networks with an autograd engine you write yourself, and agents that learn from reward.
AI
Learn how modern AI works
Open up a real, tiny GPT and follow attention, transformers and large language models through to diffusion image generators, agents and running models in production.
One workbench for the math, the picture and the code.
Symbols wired to geometry
Hover any variable in a derivation and the vector, surface or beam it names lights up in the 3D scene. Drag a slider and the equation tells you which term you moved.
NumPy in your browser
Python 3.12 and NumPy compiled to WebAssembly. Tests run locally, and your solver's output streams into the viewport.
Progress you can audit
Challenges passed, checks mastered, streaks and XP, synced to your account.
Textbooks and certifications, in one sequence
Each lesson cites the chapter it draws on, so you can go deeper in the original. Track 06 and the certification hub map the lessons to 8 current AI and ML exams from Google Cloud, AWS, Microsoft, NVIDIA and Databricks.
| Source | 01 | 02 | 03 | 04 | 05 | 06 |
|---|---|---|---|---|---|---|
| Mathematics for ML | ||||||
| ISLR | ||||||
| Deep Learning (Goodfellow) | ||||||
| Karpathy, Zero to Hero | ||||||
| Attention Is All You Need | ||||||
| DDPM, Score SDEs | ||||||
| PMLE, MLA-C02, AIP-C01, AI-103 guides |
Seven tracks, from eigenvectors to production AI.
Start anywhere, or begin with the optional maths primer. Every free track opens with a free interactive lab, and every lesson lists the textbook chapters it draws on.
- 0.1Free labFunctions and graphs: a model is a function with knobs25 min
- 0.2Free labVectors: arrows, adding, scaling and the dot product30 min
- 0.3Free labMatrices: tables of numbers that move space30 min
- 0.4Free labDerivatives: slopes, tangents and the chain rule30 min
- 0.5Free labPartial derivatives and gradients: walking downhill30 min
- 0.6Free labProbability: chance, averages, spread and Bayes35 min
- 0.7Free labExponentials, logarithms, sigmoid and softmax30 min
Mathematical Foundations
- 1.1Free labLinear transformations, eigenvectors and SVD in 3D35 min
- 1.2Lab, free previewGradients, Jacobians and the chain rule30 min
- 1.3Lab, free previewProbability, Gaussians and maximum likelihood32 min
- 1.4Lab, free previewConvexity, Lagrange multipliers and duality34 min
- 1.5Lab, free previewEntropy, cross-entropy and KL divergence30 min
Classical Machine Learning
- 2.1Free labGradient descent, saddle points and optimizer dynamics40 min
- 2.2Lab, free previewLinear and logistic regression from first principles30 min
- 2.3Lab, free previewBias, variance and regularisation28 min
- 2.4Lab, free previewDecision trees, random forests and gradient boosting36 min
- 2.5Lab, free previewSupport vector machines and the kernel trick34 min
- 2.6Lab, free previewk-means, Gaussian mixtures and EM34 min
- 2.7Lab, free previewPCA and dimensionality reduction32 min
- 2.8Lab, free previewPrecision, recall, ROC and calibration32 min
Deep Learning and Autograd
- 3.1Free labBackpropagation and non-linear decision boundaries45 min
- 3.2Lab, free previewBuild a scalar autograd engine40 min
- 3.3Lab, free previewInitialisation, normalisation and training stability32 min
- 3.4Lab, free previewConvolutions, receptive fields and feature maps34 min
- 3.5Lab, free previewRecurrent networks, LSTMs and backprop through time36 min
Transformers and LLMs
- 4.0Free labInside an LLM: from one neuron to the next word45 min
- 4.1Lab, free previewSelf-attention geometry and scaled dot-product in 3D42 min
- 4.2Lab, free previewTokenisation and embedding spaces30 min
- 4.3Lab, free previewMulti-head attention and the transformer block38 min
- 4.4Lab, free previewPretraining, sampling and fine-tuning LLMs40 min
- 4.5Lab, free previewEmbeddings, vector search and retrieval-augmented generation38 min
- 4.6Lab, free previewAlignment: reward models, RLHF and DPO36 min
- 4.7Lab, free previewLLM agents, tool use and evaluation34 min
Generative AI and Diffusion
- 6.1Lab, free previewQuantisation and efficient inference32 min
- 6.2Lab, free previewDistribution shift and drift monitoring28 min
- 6.3Lab, free previewTraining pipelines, feature stores and serving30 min
- 6.4Lab, free previewLLM serving: KV cache, batching and speculative decoding32 min
- 6.5Lab, free previewResponsible AI, fairness and generative AI security30 min
Learning maths, ML and AI by doing
Learn ML by Doing — ML by doing, not by reading.
- What is LearnMLByDoing?
- LearnMLByDoing (people also say ML By Doing, or LMLBD) is an interactive way to learn maths, machine learning and AI. You do not read about an idea and move on: you change the variables in a live 3D visualisation, watch what happens, then write Python that runs in your browser.
- Do I need to be good at maths to learn machine learning or AI?
- No. The Maths Primer starts from school-level functions and builds up vectors, matrices, derivatives, gradients and probability with pictures and small numbers, exactly as far as machine learning needs them. If you already know the maths, skip it and start at any track.
- Does it cover AI and LLMs, or only machine learning?
- All of it, in one sequence. The 8 tracks run from the maths (linear algebra, calculus, probability) through classical machine learning and deep learning to transformers, large language models, diffusion models, reinforcement learning and MLOps, with prep for 8 current AI and ML certification exams.
- Is LearnMLByDoing free?
- Eleven interactive labs are free, including the whole Maths Primer, and you do not need an account to start. Pro unlocks every lesson, every Python challenge and certification prep for $19 a month or $149 a year, with local prices in pounds, euros, Canadian and Australian dollars and Polish złoty.
- Do I need to install Python or own a GPU?
- No. Python and NumPy run inside your browser through WebAssembly, and the 3D labs render in the page. There is nothing to install.
- How is learning by doing different from a video course or a textbook?
- A video or a chapter shows you one worked example. Here every lesson is a lab: drag a slider and the loss surface, the decision boundary or the attention pattern changes with it. Guided experiments tell you what to try, a Python challenge has you implement the idea, and a short check confirms it stuck. Each lesson still cites the textbook chapter it draws on, so you can go deeper in the original.
Eleven labs are free. No account needed to start.
Pro unlocks every track, every Python challenge and certification prep for $19 a month or $149 a year.