Skip to content
Lambdian

University course · Lambdian Learn

Machine Learning, one algorithm at a time

49 lessons across supervised, unsupervised and reinforcement learning. Each one pairs motion graphics with the maths, then you build the algorithm yourself in Lambdian Lab, with Python running right in your browser.

Data+ an objectiveFoundations4 lessonsSupervised18 lessonsUnsupervised14 lessonsReinforcement13 lessons

01How every lesson works

Five steps, the same rhythm each time

  1. 01

    Intuition

    The idea in plain words, before any symbols.

  2. 02

    Motion graphics

    Step-by-step animations with sliders you can drag.

  3. 03

    The maths

    Objective, update rules and derivations, typeset.

  4. 04

    Quiz

    Three questions with explanations.

  5. 05

    Lambdian Lab

    Build it in Python in your browser; automatic checks.

0318 lessons

Supervised learning

Learn a mapping from inputs to known answers: numbers (regression) or categories (classification).

Linear classifiers

Separate classes with lines and planes, with probabilities attached.

  1. Logistic regressionThe workhorse classifier: a linear score turned into a calibrated probability by the sigmoid.40 min
  2. Softmax (multinomial logistic) regressionLogistic regression for many classes: one linear score per class, normalised by the softmax.30 min
  3. The perceptronThe original learning machine: a linear threshold unit that updates only when it makes a mistake.25 min
  4. Linear discriminant analysisA generative linear classifier and supervised projection: Gaussian classes with a shared covariance.30 min

Trees and ensembles

Decision trees, and the forests and boosted sequences built from them.

  1. Decision treesLearn a flowchart of yes/no questions: greedy splits, impurity, depth and pruning.40 min
  2. Bagging and random forestsAverage many deep, decorrelated trees to keep their low bias and cancel their high variance.35 min
  3. AdaBoostBoosting weak learners: reweight the mistakes, add a new stump, combine them by weighted vote.30 min
  4. Gradient boosting (and XGBoost)AdvancedAdd small trees one at a time, each fitted to the gradient of the loss: the champion of tabular data.40 min

0414 lessons

Unsupervised learning

Find structure with no answers given: groups, directions, densities, rules and outliers.

Clustering

Group similar points without labels.

  1. k-means clusteringFind k groups by alternating between assigning points to centroids and moving centroids to means.30 min
  2. Hierarchical clusteringBuild a tree of nested clusters by repeated merging, and read it as a dendrogram.30 min
  3. DBSCAN (density-based clustering)Clusters as dense regions: arbitrary shapes, no k, and outliers labelled as noise.30 min
  4. Gaussian mixtures and the EM algorithmAdvancedModel data as a mix of Gaussians: soft, elliptical clusters fitted by expectation–maximisation.40 min
  5. Mean shiftAdvancedFind the peaks of a density estimate by repeatedly moving to the local mean; clusters are basins.25 min
  6. Spectral clusteringAdvancedCluster the similarity graph, not the raw space: Laplacians, eigenvectors and normalised cuts.35 min

Dimensionality reduction

Compress many features into a few that keep the structure.

  1. Principal component analysisRotate to the directions of greatest variance and keep the few that matter.35 min
  2. t-SNE and UMAP for visualisationAdvancedNon-linear maps that keep neighbourhoods: how t-SNE works and how to read its pictures safely.35 min
  3. AutoencodersAdvancedNeural networks that learn compressed codes by reconstructing their input; from PCA to VAEs.35 min
  4. Independent component analysisAdvancedUnmix signals: find statistically independent, non-Gaussian sources behind observed mixtures.30 min
  5. Matrix factorisation and recommendersAdvancedLow-rank models of user–item matrices: SVD, latent factors, ALS and collaborative filtering.35 min

Density, rules and anomalies

Estimate distributions, mine association rules, flag outliers.

  1. Kernel density estimationEstimate a smooth probability density from samples by summing kernels; choose the bandwidth well.25 min
  2. Association rules: Apriori and FP-growthMine frequent itemsets from transactions and turn them into rules with support, confidence and lift.30 min
  3. Anomaly detection with isolation forestsOutliers are few and different, so random cuts isolate them quickly: short paths mean anomalies.30 min

0513 lessons

Reinforcement learning

Learn to act: an agent tries things, collects rewards and improves its policy.

Learning from experience

Monte Carlo and temporal-difference methods: SARSA, Q-learning, TD(λ).

  1. Monte Carlo methodsLearn values and policies from complete sampled episodes, with no model of the environment.35 min
  2. Temporal-difference learningLearn after every step by bootstrapping: TD(0), the TD error, and how it compares with Monte Carlo.30 min
  3. SARSA: on-policy TD controlLearn action values for the policy you are actually following, exploration included.30 min
  4. Q-learning: off-policy TD controlLearn optimal action values from any exploratory experience with the max-based TD update.35 min
  5. n-step TD and TD(λ) with eligibility tracesAdvancedBlend one-step TD and Monte Carlo: n-step returns, the λ-return and eligibility traces.35 min

Deep and policy-based RL

DQN, policy gradients, actor-critic and PPO.

  1. Deep Q-networks (DQN)AdvancedQ-learning with neural networks: experience replay, target networks and the deadly triad.40 min
  2. Policy gradients: REINFORCEAdvancedOptimise the policy directly by gradient ascent on expected return, using the score-function trick.40 min
  3. Actor-critic methods (A2C)AdvancedCombine a policy (actor) with a learned value function (critic) for lower-variance policy gradients.35 min
  4. Proximal policy optimisation (PPO)AdvancedStable, reusable policy updates with a clipped surrogate objective and generalised advantage estimation.40 min

06For instructors

Teach it to your class

Present in class

Every animation has a full-screen presenter mode (press F). Step through it at your pace, drag the sliders live.

See every student

Students join your class with a code. You see time spent per lesson and lab, every attempt, and the code they submitted.

No setup

Lambdian Lab runs Python, NumPy, scikit-learn and matplotlib in the browser. Nothing to install on lab machines.