AI and Machine Learning
A complete deep-learning curriculum: the interactive master syllabus, its learning roadmap, the component gallery, and one note per lesson as the course progresses.
Neural Networks & Modern AI Models 40 notes
Section overview
Learning RoadmapInteractive 24-week core + 12-week flexible extension roadmap for Neural Networks & Modern AI Models v2.0.
Interactive ComponentsKnowledge Markup Language v2.0 — 47 interactive components across 7 categories, globally registered in MDX for all AI & robotics notes.
Lab Coverage MapA guided exercise for each published lesson, plus the React lab inventory for Chapter 1.
1 · Tensor & Computational Foundations8 notes
From robot state vectors to the multidimensional data of a neural network — dimension explorer, axis navigator, trajectory builder, RGB, dtype, memory and device labs and hands-on code labs.
Lesson 1.2 — Tensor ManipulationSelect, reorganize and combine tensors without losing data semantics — index and slice navigation, reshape and flatten mapping, transpose vs permute, singleton axes, cat and stack, and a robot data assembly pipeline.
Lesson 1.3 — Batch Processing & BroadcastingUse the batch, time and feature axes to trace tensor operations, group reductions, and reuse fitted statistics.
Lesson 1.4 — Linear TransformationsFrom dot products to neural layers — dot-product accumulator, matrix multiplication explorer, 2D geometry, linear-layer and parameter inspector, batched affine maps and a robot state projection with hands-on code labs.
Lesson 1.5 — Computational GraphsFrom forward computation to the first learning loop — scalar and batched computation graphs, residual and MSE loss, a parameter loss landscape, one explicit gradient step and a linear system-identification training loop.
Lesson 1.6 — Gradients & BackpropagationFrom local sensitivity to parameter gradients — tangent and finite-difference labs, a scalar backprop player, fan-out accumulation, Jacobian and VJP inspectors, a two-layer manual backward pass and PyTorch verification.
Lesson 1.7 — Automatic DifferentiationFrom a dynamic computation graph to a working gradient engine — graph recorder, reverse-topological player, leaf and retain-grad inspector, vector-output backward seed, gradient buffer timeline, route switch, and a scalar autograd engine from scratch.
Lesson 1.8 — Building a Neural Network from ScratchAssemble tensors, affine layers, activation, manual backpropagation and mini-batch SGD into a trainable two-layer network for nonlinear dynamics — with seven interactive labs and NumPy / PyTorch code.
2 · Training, Optimization & Probability5 notes
Complete Lesson 2.1 — Regression vs. Classification, Logits, Softmax Competition, Cross Entropy, Log-Sum-Exp Stability, Softmax-CE Gradients, Loss Selection, and Robot Operating-State Classification.
Lesson 2.2 — Gradient-based OptimizationComplete Lesson 2.2 — Objective & Curvature, GD/SGD/Mini-batch, Learning Rate Stability, Momentum, AdaGrad/RMSProp, Adam & AdamW Bias Correction, Weight Decay & LR Schedules, and Live Robot Dynamics Benchmark.
Lesson 2.3 — Training StabilityComplete Lesson 2.3 — Forward/Backward Signal Propagation, Jacobian Products, Activations, Xavier & He Initialization, Gradient Clipping, BatchNorm/LayerNorm/RMSNorm, Residual Paths, and Controlled Deep MLP Experiment.
Lesson 2.4 — Generalization & Model DebuggingComplete Lesson 2.4 — Empirical vs. Expected Risk, Trajectory Splitting, Capacity & Bias-Variance, L1/L2 & Dropout, Early Stopping, Leakage & Distribution Shift, and Controlled Fault Injection.
Lesson 2.5 — Probability & Statistical LearningComplete Lesson 2.5 — Random Variables (PMF/PDF), Bayes Rule, Moments & Covariance, Bernoulli/Categorical/Gaussian, MLE, Gaussian NLL vs. MSE, Entropy & KL Divergence, and Probabilistic Robot Dynamics.
3 · Representation Learning & Vision4 notes
Complete Lesson 3.1 — Representation Learning, Latent Space & Manifolds, PCA & SVD, Encoder-Decoder Architecture, Bottleneck Objective, Latent Geometry & Interpolation, Denoising Autoencoders, and Robot Sensor Compression.
Lesson 3.2 — Convolutional Neural NetworksComplete Lesson 3.2 — Image NCHW Tensors, Sliding Window Cross-Correlation, Edge Filters, Padding/Stride/Dilation, Multi-channel Feature Maps, Pooling, Receptive Field, and Industrial Visual Inspection CNN.
Lesson 3.3 — Residual & Multiscale NetworksComplete Lesson 3.3 — Hierarchical Features, Residual BasicBlock & Projection, ResNet-18/50 Stages, Feature Pyramids, Upsampling & ConvTranspose2d, U-Net Skip Fusion, IoU/Dice Metrics, and Mini U-Net Workspace Segmentation.
Lesson 3.4 — Self-supervised & Contrastive LearningComplete Lesson 3.4 — Learning Paradigms, Data Augmentation Views, L2 Normalization & Cosine Similarity, Positive/Negative Pairs, NT-Xent / InfoNCE Objective, SimCLR Architecture, Frozen Linear Probe, and ssl0304.py.
4 · Sequence Models & Modern Architectures7 notes
Batch-first sequences, shared recurrent weights, BPTT, long-term dependencies, LSTM and GRU.
Lesson 4.2 — Attention MechanismsQuery, key and value projections, score scaling, masking, output aggregation and attention gradients.
Lesson 4.3 — Transformer ArchitectureMulti-head attention, position encoding and RoPE, residual paths, normalization and feed-forward blocks.
Lesson 4.4 — Autoregressive Language ModelingBPE, embedding lookup, shifted targets, token cross-entropy, sampling and Tiny GPT training.
Lesson 4.5 — Vision TransformerPatchification, visual tokens, the CLS readout, visual attention, resolution scaling and a synthetic ViT–CNN comparison.
Lesson 4.6 — Graph Neural NetworksAdjacency, message passing, GCN normalization, graph attention, permutation equivariance and coupled dynamics.
Lesson 4.7 — State Space Sequence ModelsExact ZOH discretization, memory modes, recurrence and convolution, parallel scan, selective SSMs and Mamba.
5 · Generative Modeling6 notes
Compare a single latent code with a distribution of latent codes. Follow the sampled noise through the reconstruction and see what changes when the KL penalty increases.
Lesson 5.2 — GANs & Normalizing FlowsGenerate samples from the same Gaussian base and see how adversarial learning and invertible transformations solve different problems.
Lesson 5.3 — Denoising Diffusion Probabilistic ModelsFollow points as they disperse into noise, then step through a learned reverse sampler. Track exactly which signal and noise terms each equation uses.
Lesson 5.4 — Score-based Generative ModelsRead the score as a field of local directions. Follow the field in Langevin sampling, a reverse-time SDE, and a probability-flow ODE.
Lesson 5.5 — Flow MatchingFollow paired points along probability paths, see how conditional velocities combine, and integrate the resulting field to move noise into data.
Lesson 5.6 — Conditional Generation & GuidanceHold the initial noise fixed and change the condition or guidance scale. Compare how the same sampler represents multiple valid actions.
6 · Foundation Models & Robot Learning6 notes
Explore how dataset size, trainable rank, and context length change an adaptation experiment and its compute budget.
Lesson 6.2 — Vision-Language ModelsFollow image patches into an embedding or language-model prefix. Compare contrastive alignment, attention, and token-level supervision.
Lesson 6.3 — Imitation LearningCompare recorded expert states with the states a learned policy actually visits. Replay recovery examples and track how errors accumulate in closed loop.
Lesson 6.4 — Diffusion PolicyDenoise an entire action sequence, execute a short prefix, and plan again after the observation changes.
Lesson 6.5 — Vision-Language-Action ModelsTrace observations and instructions through a VLA, then compare action tokens with a continuous action expert.
Lesson 6.6 — World ModelsCompare state inference from observations with prediction from actions. Plan in a learned model and verify what happens in the environment.