Classical Machine Learning
The workhorse algorithms: linear and logistic regression, gradient descent, kNN and SVMs, decision trees and boosted ensembles, clustering and PCA — and the bias-variance trade-off that governs them all.
- 01Linear regression
Fit a line to data: the model ŷ = w·x + b, residuals and mean squared error, the closed-form least-squares solution, and ridge/lasso regularisation — with a draggable scatter plot.
Beginner~22 min· Interactive· Quiz (5) - 02Gradient descent
The optimisation engine behind almost all of ML: the update rule, a worked example of how the learning rate decides between crawling, converging and diverging, batch vs mini-batch vs stochastic, and local minima — on a rotatable 3D loss surface.
Beginner~24 min· Interactive· Quiz (5) - 03Classification: logistic regression, kNN, SVM
Predicting categories with three classic methods: logistic regression (sigmoid + cross-entropy), k-nearest neighbours (vote of the closest examples) and support vector machines (maximum margin + kernels) — and how C, k and γ shape the decision boundary.
Beginner~26 min· Quiz (5) - 04Decision trees and ensembles
How decision trees choose splits (Gini, entropy), why single trees overfit, and how random forests (bagging) and gradient boosting (XGBoost, LightGBM) combine many trees into the strongest models for tabular data.
Intermediate~28 min· Quiz (5) - 05Clustering and PCA
Two core unsupervised tools: k-means clustering (Lloyd's algorithm, k-means++ initialisation, choosing K) and principal component analysis for dimensionality reduction — with an interactive k-means playground.
Intermediate~28 min· Interactive· Quiz (5) - 06Overfitting and the bias-variance trade-off
The central problem of machine learning: generalising to new data. Underfitting vs overfitting, the bias-variance decomposition, how model capacity, data size, noise and regularisation interact — explored with a live polynomial-fitting lab.
Intermediate~24 min· Interactive· Quiz (5)