AI in Motion
◈

Machine Learning

Regression, gradient descent, classifiers, trees, SVMs, clustering, PCA, overfitting and evaluation.

14 animated lectures · 39 minutes

▶ Start with lecture 1
1:22
Machine Learning · 01

What Is Machine Learning?

Instead of writing rules, show the computer examples. The core idea of machine learning, its three main types and the standard workflow.

Beginner · 6 chapters · 3-question quiz
1:21
Machine Learning · 02

Linear Regression, Visually

Fit a straight line to data with gradient descent. Watch the residuals shrink and the mean squared error fall from 9.45 to 0.55.

Beginner · 6 chapters · 3-question quiz
1:46
Machine Learning · 03

Gradient Descent and the Learning Rate

How almost every ML model learns: follow the slope downhill. See small, good and too-large learning rates, and how optimisers like Adam move on a loss surface.

Beginner · 7 chapters · 3-question quiz
1:29
Machine Learning · 04

Linear Classifiers: Logistic Regression and the Perceptron

Draw a line that separates two classes. Watch logistic regression learn a probabilistic boundary and the perceptron nudge its line towards mistakes.

Beginner · 6 chapters · 3-question quiz
1:21
Machine Learning · 05

k-Nearest Neighbours: Learning by Similarity

Classify a new point by asking its closest neighbours to vote. Simple, intuitive and a great first classifier.

Beginner · 5 chapters · 3-question quiz
1:27
Machine Learning · 06

Decision Trees and Random Forests

A tree learns yes/no questions that carve the data into pure regions. A forest of trees votes for more robust predictions.

Beginner · 6 chapters · 3-question quiz
1:30
Machine Learning · 07

Support Vector Machines and the Kernel Trick

Of all the lines that separate two classes, pick the widest street. Then lift the data into a new dimension to separate what a line cannot.

Intermediate · 6 chapters · 3-question quiz
1:12
Machine Learning · 08

k-Means Clustering, Step by Step

Unsupervised learning in action: assign points to the nearest centroid, move each centroid to its points’ average, repeat.

Beginner · 5 chapters · 3-question quiz
1:18
Machine Learning · 09

Principal Component Analysis (PCA)

Find the direction in which data varies most, then project onto it. Watch two dimensions become one while keeping 93.5% of the variance.

Intermediate · 5 chapters · 3-question quiz
1:29
Machine Learning · 10

Overfitting, Underfitting and Bias–Variance

Too simple, just right, too complex: see three models on the same data and why validation error — not training error — tells the truth.

Beginner · 6 chapters · 3-question quiz
1:32
Machine Learning · 11

Train/Test Splits and Cross-Validation

Why data is split into training, validation and test sets — and how k-fold cross-validation gives a more reliable score.

Beginner · 6 chapters · 3-question quiz
1:40
Machine Learning · 12

Confusion Matrix, Precision, Recall and ROC

Accuracy alone can mislead. Build a confusion matrix, compute precision, recall and F1, then move the threshold and trace an ROC curve.

Intermediate · 6 chapters · 3-question quiz
Deep dive10:57
Machine Learning · 13

Gradient Descent and Optimisation: A Deep Dive

Everything about how models are fitted: loss functions, learning rates, batch vs stochastic gradient descent, momentum, Adam and AdamW, schedules, conditioning and feature scaling, saddle points and practical tuning.

Intermediate · 32 chapters · 5-question quiz
Deep dive10:51
Machine Learning · 14

Evaluating Machine Learning Models: A Deep Dive

How to know whether a model is really good: train/validation/test splits, cross-validation, confusion matrices, precision, recall and F1, ROC and PR curves, calibration, regression metrics, bias–variance, learning curves and leakage.

Intermediate · 32 chapters · 5-question quiz