TensorTau PathToAGI Doing Machine Learning Honestly Level 05

Level 05 · Doing Machine Learning Honestly · Chapter 069

VC Dimension Intuition

Can we measure model-class flexibility without simply counting parameters?

1. Shattering

A hypothesis class shatters a set of points if, for every possible assignment of binary labels to those points, some hypothesis in the class realizes that labeling.

For three points there are 23=82^3=8 possible binary labelings.

VC dimension is the size of the largest set that the hypothesis class can shatter.

2. A line in 1-D

A single threshold classifier on a line cannot realize every arbitrary labeling of two ordered points. A richer interval classifier can realize more patterns. Capacity depends on what decision sets the class can express—not just how many numbers happen to be stored.

3. Why the idea matters

If a class can fit extremely many arbitrary label patterns, excellent training fit is weaker evidence that it discovered real structure. Statistical learning theory turns this intuition into generalization bounds involving capacity and sample size.

4. Do not misuse VC dimension

For modern deep networks, classical VC bounds are often too loose to explain practical generalization. The concept remains valuable because it teaches a deep principle:

we must reason about the richness of the set of functions a learner can choose from.

Optimization, norms, architecture and data structure further constrain what neural networks actually learn.

What to Remember

VC dimension formalizes a notion of expressive capacity through shattering. It is a theoretical lens, not a practical score to compute for every model.

Next → Random Seeds and Reproducibility: even if our theory is sound, can another run reproduce the result we report?

Six ways to work the chapter, climbing from explaining it in your own words to investigating it like a researcher. Reading is not enough — this is where the chapter lands.

  1. Explain: Define shattering without formal notation.
  2. Calculate: How many binary labelings exist for 4 and 10 points?
  3. Predict: Can a 1-D threshold realize labels [1,0,1] on ordered points?
  4. Break: Find a labeling that a simple linear separator cannot fit.
  5. Build: Enumerate labelings of small 1-D point sets for threshold/interval classifiers.
  6. Investigate: Compare parameter count and functional flexibility for two different model families.