Machine Learning
How models learn patterns from data, and how to tell whether they really learned anything useful. Training and test sets, overfitting, evaluation metrics, features and the classic mistakes that make a model look better than it is.
Each quiz focuses on one idea and explains every answer, so you can use them to learn as much as to check what you know.
Basis functions: how a linear model learns curves10 questions on linear regression, basis functions, the bias term, hand-made features versus learned ones and the single-layer network view.10 questionsPlay now →The bias-variance trade-off10 questions on bias, variance and noise, how model flexibility and regularisation move them, and what the trade-off does and doesn't tell you.10 questionsPlay now →Confusion matrices, error types and ROC curves10 questions on true and false positives, type 1 and type 2 errors, false discovery rate, thresholds, ROC curves and area under the curve.10 questionsPlay now →The curse of dimensionality10 questions on exponential growth of grid cells, polynomial coefficients, empty cells, shells of volume in high dimensions and where more dimensions help.10 questionsPlay now →Data basics for AI: features, labels, structure10 questions on features, labels, data points, datasets, the DIKW pyramid, structured and unstructured data. With explanations.10 questionsPlay now →Data manifolds and basis functions that adapt to the data10 questions on low-dimensional manifolds in high-dimensional data, natural versus random images, radial basis functions, support vector machines and hand-made features.10 questionsPlay now →Data quality, bias and feature engineering10 questions on biased data, what makes data high quality, the AI project lifecycle and feature engineering. With explanations.10 questionsPlay now →Entropy: measuring uncertainty and surprise10 questions on information, surprise, bits, entropy of uniform and uneven distributions, differential entropy and the maximum-entropy Gaussian.10 questionsPlay now →Generative classifiers: Gaussians, priors and naive Bayes10 questions on generative classification, Gaussian class densities, linear and quadratic boundaries, class priors, naive Bayes, sigmoid and softmax.10 questionsPlay now →Inductive bias and the no free lunch theorem10 questions on inverse problems, prior knowledge, smoothness, translation invariance, implicit and explicit bias and the no free lunch theorem.10 questionsPlay now →KL divergence, conditional entropy and mutual information10 questions on relative entropy, why it is not a distance, its link to maximum likelihood, conditional entropy and mutual information.10 questionsPlay now →The lasso and generalised weight decay: penalties that switch weights off10 questions on the L1 and L2 penalties, the lasso, sparse solutions, constraint regions with corners, and the link between penalising and constraining.10 questionsPlay now →Least squares: the design matrix, the normal equations and the geometry10 questions on the design matrix, normal equations, pseudo-inverse, the role of the bias weight, residual variance and the projection picture.10 questionsPlay now →Linear discriminant functions: classifying with straight boundaries10 questions on linear decision boundaries, weight vectors, one-versus-rest, one-hot targets and why least squares struggles with classification.10 questionsPlay now →Logistic regression: a probability from a weighted sum10 questions on activation functions, generalised linear models, cross-entropy, gradients, basis functions and the overfitting trap on separable data.10 questionsPlay now →Classification decisions: error rate, unequal costs and the reject option10 questions on minimising misclassification, loss matrices, unequal error costs and letting a classifier refuse uncertain cases.10 questionsPlay now →Model averaging: ensembles, bagging and boosting10 questions on averaging models, why errors cancel, bootstrap samples, bagging, boosting, correlated errors and the cost of ensembles.10 questionsPlay now →Nearest neighbours: density estimation and classification10 questions on K-nearest-neighbour density estimation and classification, the role of K, the nearest-neighbour rule and its costs.10 questionsPlay now →Overfitting and model evaluation10 questions on training and test sets, overfitting, accuracy, precision and recall. Check your machine learning intuition.10 questionsPlay now →From predictions to decisions: loss functions in regression10 questions on inference and decision, loss functions, why squared loss gives the conditional mean, the median, the mode and multimodal pitfalls.10 questionsPlay now →Fitting curves: model complexity and regularisation10 questions on fitting a curve to noisy data, model complexity, large coefficients, penalties and hyperparameters. With explanations.10 questionsPlay now →Regularised least squares, online learning and multiple outputs10 questions on batch and sequential learning, the LMS rule, regularised least squares, shrinkage and regression with several outputs.10 questionsPlay now →Softmax, probit and the natural pairing of loss and activation10 questions on multi-class logistic regression, softmax, the noisy threshold model behind probit, outlier sensitivity and canonical link functions.10 questionsPlay now →Supervised, unsupervised and self-supervised learning10 questions on supervised, unsupervised and self-supervised learning, classification, regression, generative models and fine-tuning.10 questionsPlay now →Three ways to build a classifier, and why probabilities pay off10 questions on generative models, discriminative models and discriminant functions, and what posterior probabilities give you that a bare label does not.10 questionsPlay now →