Explore all 16 two-input Boolean functions and test VC dimension interactively
Click any cell to see details. Green border = linearly separable, red = not.
| x₁ | x₂ | f(x) |
|---|
Drag the 3 points below. A perceptron can shatter 3 points in general position (classify all 2³ = 8 labelings). If points become collinear, some labelings fail.
Click a labeling to test it. Blue = class 1, Red = class 0. Green highlight = separable, Red = not.
A set of points is shattered by a model if the model can achieve every possible labeling. The VC dimension is the largest set size that can be shattered.
For a perceptron in ℝ²: VCdim = 3