21 tutorials· Ordered reading path
Supervised learning is the workhorse of machine learning: give the model labelled examples and let it learn the mapping. This path covers the core algorithms and the practical skills you need to deploy them well.
You will implement linear regression five ways, classify text with TF-IDF, reduce dimensions with PCA and PLS, and learn to select, tune, and evaluate models rigorously. For neural networks and deep learning, see the dedicated Deep Learning path.
Solve linear regression five ways in Python: normal equation, gradient descent, SVD, scipy.optimize, and sklearn. Different maths each time, the same answer.
2D convolution from scratch in NumPy, verified against PyTorch's Conv2d, then a CNN trained on MNIST. Kernels, stride, padding, and feature maps explained.
Build a text classifier that sorts documents into 20 categories. How TF-IDF turns text into numbers and why Naive Bayes works despite its assumptions.
Build an LSTM from scratch, check the NumPy cell against PyTorch and measure how forget bias changes recall across 100 sequence steps.
Fine-tune a pretrained language model on IMDb into a sentiment classifier: tokenisation, gradual unfreezing, and discriminative learning rates from scratch.
PCA vs Fisher's LDA on the Iris dataset. When unsupervised reduction fails, why labels matter, and the eigenvalue problem behind both methods.
Principal Component Regression vs Partial Least Squares on the Hitters dataset. When discarding features helps predictions, and why PLS beats PCR.
Gaussian process regressor from scratch in NumPy. How kernels encode smoothness, posteriors collapse with data, and GPs power Bayesian optimisation.
Build an SVM from scratch with scikit-learn and a cvxopt dual QP. Max-margin geometry, the kernel trick, hinge vs cross-entropy.
Build a relevance vector machine from scratch. The RVM gives sparser, calibrated alternatives to the SVM via ARD priors and evidence maximisation.
Five strategies for imbalanced classification with scikit-learn and imblearn: downsampling, upsampling, SMOTE, and class weights, judged on precision-recall.
Build three unsupervised anomaly detectors from scratch: Isolation Forest, One-Class SVM and an autoencoder. See why ROC-AUC lies on imbalanced fraud data.
Bagging, AdaBoost, gradient boosting, stacking, and mixture of experts from scratch in NumPy, with XGBoost benchmarked. Why ensembles still win on tabular data.
Boosting fits weak trees to the errors so far, one at a time. We animate the residual loop, derive it as gradient descent in function space, then XGBoost.
One decision tree overfits wildly. Average a hundred on bootstrap samples with random feature subsets and you get the no-tuning workhorse of tabular ML.
Grid search, random search, and Bayesian optimisation on the same Random Forest. Why Bayesian optimisation learns from its own history and wins.
AIC vs BIC explained: build both information criteria from scratch, see why they penalise complexity differently, and when to use each for model selection.
Measure how five model families miscalibrate, then fix it three ways. On 200 calibration rows ECE and log loss pick different methods, and only one of them is right.
Split conformal prediction in Python delivers exactly the coverage you ask for. Measured per class it gives 95% on the common ones and 29% on the rare.
Build double machine learning in Python with cross-fitting and influence-function intervals. Measure a coverage failure and match DoubleML on 401(k) data.
Fit Cox proportional hazards in Python on real recidivism data: partial likelihood, hazard ratios, Schoenfeld diagnostics, and time-dependent covariates.
Interactive linear and polynomial regression calculator. Enter data points, fit models, and visualise residuals with live R² and coefficient estimates.
Try itConfusion matrix analysis: accuracy, precision, recall, F1 score, MCC, and Cohen's kappa. Visual heatmap and metric comparison charts.
Try itInteractive walkthrough of polynomial overfitting from Bishop PRML Ch. 1. Explore degree selection, train/test error, data size effects, and ridge regularisation.
Try itGet notified when new tutorials and deep-dives are published. No spam, unsubscribe anytime.
Common questions about this topic