Core ML Visuals
Classical ML, deep learning, optimisation, and neural network foundations — taught through numbered SVG sequences
Activation Functions
Compare sigmoid, ReLU, GELU and Leaky ReLU on checked curves, build XOR with two hidden units, and separate local slopes from full-network gradients.
See it visuallyAdaBoost
Trace classic binary AdaBoost through five illustrative samples, normalized reweighting and three signed stump votes, with training and noise limits.
See it visuallyAdam Optimizer, Visually
Trace Adam's two moving averages, bias correction and coordinatewise steps, then see why retained momentum can raise the current minibatch loss.
See it visuallyThe Agent Router Architecture
Trace request classification, policy rules and confidence gating into tool, model and human lanes, then see the cost trade-off and a confident routing error.
See it visuallyAnomaly Detection
Score unusual observations against a reference, trace isolation and neighbourhood counts, and see how contamination and indistinguishable inputs defeat detection.
See it visuallyAttention Mechanism
Follow a query through key matching, scaled scores, normalized shares and a value blend, then inspect masks and indistinguishable keys.
See it visuallyAutoencoders
Trace a two-input, one-code autoencoder through averaging, reconstruction, denoising and a visible information-loss limit.
See it visuallyBackpropagation
Trace cached values, local derivatives and branch sums to compute weight gradients, then separate backpropagation from the optimizer update.
See it visuallyBagging vs Boosting
Bagging averages separately fitted predictions; boosting adds corrections to the current ensemble. Follow both through four targets and their limits.
See it visuallyBatch Normalization
Follow batch centering, variance scaling and learned affine parameters, then distinguish training companions from stored evaluation statistics.
See it visuallyBias-Variance Tradeoff
Separate systematic prediction error, sensitivity to the training sample and fresh-label noise with one exact squared-error example.
See it visuallyClustering
Trace centroid assignment, inertia, density connectivity and feature scaling, then see how a bridge can merge two intended groups.
See it visuallyConfusion Matrix
Read forty hits, ten false alarms, twenty misses and thirty correct negatives, then see what the table reveals and what it loses.
See it visuallyConvolution Operation
Trace a shared kernel through a checked numerical image, then inspect stride, padding, input-channel sums and the limits of shift correspondence.
See it visuallyConvolutional Neural Networks
Trace local filters, shared weights, pooling and ReLU through a small image classifier, then check its spatial limits.
See it visuallyCross-Validation
Rotate five held-out folds, average their errors, and keep preprocessing and the final test set outside the wrong training boundary.
See it visuallyDBSCAN
How grouping by crowd density finds rings and chains, with core, border and noise calls shown.
See it visuallyDecision Trees
Follow ten labelled samples through feature thresholds, measured impurity reduction and recursive regions, then trace a query and inspect the limits of rectangular leaves.
See it visuallyDimensionality Reduction
Work through PCA centering, variance, projection and reconstruction, then see how retaining most variance can erase class information.
See it visuallyDropout
Trace independent masks, survivor scaling and evaluation through four activations. See why matching expectations does not match every prediction.
See it visuallyGenerative Adversarial Networks
A generator learns through a discriminator. Trace alternating updates, compare two output modes and see how different inputs can collapse onto one sample.
See it visuallyGradient Boosting
Fit trees to loss-dependent corrections and add their scaled outputs. Work two squared-loss rounds on four observations, then see why constant leaves cannot extrapolate.
See it visuallyGradient Descent
Follow computed parameter updates, compare learning rates, and see why a downhill direction can still produce a worse finite step.
See it visuallyHow A Decision Head Works
Follow a pooled representation through class, score and flag heads, then see how training changes probabilities and why typed predictions can still be wrong.
See it visuallyHyperparameter Tuning
Compare grid, random and adaptive search on a checked loss surface, allocate training resources, and keep selection separate from final evaluation.
See it visuallyK-Means Clustering
Lloyd's nearest-center and mean updates reduce squared error from 113 to 1, but two stable rectangle partitions expose a local-solution limit.
See it visuallyK-Nearest Neighbors
Predict a new point's class by looking at the k training points closest to it and taking a majority vote.
See it visuallyLearning Curves
Compare training and held-out error as sample size grows, using a checked mean predictor and a visible population-shift limit.
See it visuallyLearning Rate Scheduling, Visually
A schedule changes the learning rate as training advances. Follow checked steps, warmup, cosine decay and restarts, then see why curvature still limits the rate.
See it visuallyLinear Regression
Fit a straight line through scattered data points by minimising squared vertical errors, giving a single trend for prediction.
See it visuallyLogistic Regression
Learn an affine score and map it through sigmoid to predict binary probabilities, then use a separate threshold to choose a class.
See it visuallyLong Short-Term Memory
Trace retained memory, signed writes and the hidden readout through an LSTM, then see how repeated forgetting can still erase the signal.
See it visuallyLoss Functions
How residuals become squared, absolute or logarithmic losses, and why a loss can still reward the wrong prediction.
See it visuallyModel Evaluation
Why you cannot trust training scores and how train, validation, and test splits keep you honest.
See it visuallyMomentum
A decaying gradient buffer carries history into the next update. Follow computed steps through a narrow valley, overshoot and instability.
See it visuallyMulti-Layer Perceptron
Trace two nonlinear hidden features through a complete XOR construction, then distinguish representational capacity from successful training.
See it visuallyOverfitting vs Underfitting
Underfitting misses the pattern; overfitting follows sample noise. Compare both on the same held-out inputs before choosing a model.
See it visuallyPerceptron
Follow two checked mistake updates from a zero start to a straight separator, then see why one neuron cannot represent XOR.
See it visuallyPolynomial Regression
Follow three samples through squared features, an exact quadratic fit, alternative interpolants and fresh-point checks, then expose a failure beyond training.
See it visuallyPooling Layers
Local windows shrink each feature map; max and mean retain different information, and shifts across window boundaries change the result.
See it visuallyRandom Forests
Track six rows through replacement sampling, per-node feature choices and three tree routes. Compare voting with probability averaging, inspect OOB coverage and expose shared mistakes.
See it visuallyResidual Connections
Follow an input through identity and residual routes, add their gradients, match tensor shapes and see why shortcuts do not guarantee stable signals.
See it visuallyRidge & Lasso Regularisation
Compare smooth ridge shrinkage with lasso thresholding through checked coefficients, constraint geometry, identical features and a visible underfitting limit.
See it visuallyROC and AUC
Sweep decision cutoffs to trace True Positive Rate against False Positive Rate, measuring threshold-independent ranking discrimination via Area Under the Curve.
See it visuallySequence-to-Sequence
Follow recurrent encoding, token feedback, teacher forcing and sequence search, then see an exact collision in a toy fixed context.
See it visuallyStochastic Gradient Descent, Visually
Use one sampled gradient or average a batch. Follow four rows to see unbiased estimates, changing endpoints and residual noise.
See it visuallySupport Vector Machines
Draw the widest street between two classes, anchor the boundary on border support vectors, and forgive slack crossings when data overlaps.
See it visuallyt-SNE & UMAP
Trace Gaussian affinities, fuzzy graph edges and map forces, then see why a readable two-dimensional map cannot preserve every distance.
See it visuallyTransfer Learning
Reuse a learned representation, fit a target head and decide what to adapt using held-out predictions, while checking missing features and forgetting.
See it visuallyVanilla RNN
Trace one shared recurrent cell through signed state updates, backward sensitivity, sequence resets and a visible saturation failure.
See it visuallyVanishing and Exploding Gradients
Trace how products of local derivatives shrink or amplify gradients, then separate what identity skips and norm clipping can actually fix.
See it visuallyVariational Autoencoders
Trace Gaussian latent codes, reparameterized sampling and the reconstruction–KL objective, then see why prior sampling can still fail.
See it visuallyWhat Is Machine Learning?
Machine learning fits patterns from data. Follow a toy classifier from labelled examples to a held-out test and see why memorization fails.
See it visuallySelf-Supervised Learning
Extract dense supervision directly from raw, unlabelled data using pretext tasks like masking and contrastive pairs to pretrain foundation backbones for downstream fine-tuning.
See it visuallyContrastive Learning
Compare two views of one image against other batch views. Trace cosine scores, temperature, gradients and the limits of instance-based supervision.
See it visuallyReinforcement Learning Foundations
An agent learns from actions and rewards. Follow a checked Q update, discounted choices, exploration, terminal states and two ways the setup can fail.
See it visuallyKnowledge Distillation
Train a student to match a teacher distribution, then serve the student alone. Follow temperature, gradients, hard labels and the limits of imitation.
See it visuallyGraph Neural Networks
Trace node features through neighbor aggregation and two-hop message passing. See what mean aggregation preserves, loses and smooths away.
See it visuallyDiffusion Models
Learn a reverse process from known Gaussian corruption. Trace noise prediction, scaled sampling updates, guidance and the limit of recovering an original sample.
See it visuallyLoRA Low-Rank Tuning
A frozen weight matrix gains a trainable low-rank correction. Follow the factors, output sum, parameter count, initialization, merge and rank limit.
See it visuallyTransformers
Trace positioned token rows through attention heads, residual normalization and a feed-forward network, then inspect decoder masks and dense pair growth.
See it visuallyBERT vs GPT
GPT predicts continuations with causal attention; BERT reconstructs selected tokens with bidirectional context. Trace the masks and a concrete leakage test.
See it visuallyMixture Of Experts
A router selects a few experts per token. Follow a four-expert example through gate weights, output blending, dispatch, load balance and capacity overflow.
See it visuallyRLHF / DPO
Trace ranked answers through reward modeling, PPO and the DPO pair loss, with checked probability examples and visible limits of preference feedback.
See it visuallyWord2Vec
Context prediction learns word vectors. Follow an explicit window, two vector tables, a four-word softmax, CBOW, and negative sampling.
See it visuallyPrecision-Recall Curve
Trace six scored cases through changing cutoffs, count precision and recall, and distinguish average precision from the operating policy you choose.
See it visuallyEnsemble Stacking
Train a combiner on out-of-fold predictions, then apply it to refitted base models. A four-row fixture makes its learned weights checkable.
See it visuallyEnsemble Methods
Combine predictions by voting, averaging, sequential correction or a trained combiner. Different mistakes can help; shared mistakes survive.
See it visuallySHAP & LIME
Follow a weighted local fit and a two-feature Shapley game, then see how references and missing-feature assumptions change the explanation.
See it visuallyTime Series Forecasting (ARIMA)
Difference observed levels, forecast the next change and accumulate back to a level, then check future errors, prediction intervals and an unseen break.
See it visuallyEmbedding Space
Trace coordinates, cosine, distances and normalization in one toy embedding table, then see why a static vector cannot adapt to context.
See it visuallyEarly Stopping
Monitor validation loss, count failed improvement checks, stop at the patience limit and restore a saved checkpoint. The validation winner can still lose on new data.
See it visuallyTensor Processing Units
Follow a small weight-stationary array through multiply-accumulate operations, operand reuse, staggered timing and memory limits.
See it visuallyWord Embeddings
Word embeddings map word identities to learned vectors. Follow a toy lookup, compare cosine and distance, and see the limit of one vector per word.
See it visuallyTokenization
Trace a counted BPE corpus from characters to reusable pieces, IDs and decoding, including vocabulary costs and lossy normalization.
See it visually