Every supervised classifier does the same fundamental job: it looks at labelled training points scattered across a feature space and builds a rule for guessing the label of any new point. This scene renders that rule as a literal 3D landscape — a probability surface hovering over a 2D feature plane. Hills mean "confidently class B," valleys mean "confidently class A," and the blurry slope between them is the decision boundary.
Training points are drawn as small spheres coloured by their true label and lifted to their true class height. When a sphere sits over a valley but is coloured for the "hill" class (or vice-versa), that point is being misclassified — you can see the model's mistakes directly instead of reading them off a confusion matrix.
k closest training points. Complexity here is inverted: a high complexity value means a small k, which memorises local noise and produces a jagged, overfit surface.There is no single "best" algorithm for every dataset — the "no free lunch" theorem shows that averaged across all possible problems, every algorithm performs the same. What matters in practice is matching an algorithm's bias (its assumptions about the shape of the boundary) to the actual structure of your data.
A 3D decision-surface landscape lets you watch logistic regression, k-nearest neighbors, a decision tree, and a random forest carve up the same labelled dataset in very different ways.
Every point of the plane gets a predicted probability rendered as terrain height and colour. Training spheres sit at their true class height, so a sphere floating over the "wrong" colour is a visible misclassification — no confusion matrix required.
Pick an algorithm and a dataset shape, then push the complexity slider from an underfit flat landscape to an overfit jagged one. Add label noise to see which algorithms chase it and which stay smooth.
Random forests were popularised by Leo Breiman in 2001. By averaging many high-variance trees trained on bootstrap samples, they trade a little bias for a large reduction in variance — usually a good deal.