For a class of classifiers, what is the growth function, i.e. how many different ways can the class label m points? For the one-dimensional thresholds ht(x)=1[x≥t], how many labellings can they make on 3 points?

Learning theory, VC dimension
Level L1 Beginner. Length Short. Nature Th+Mat Both.

What's being asked

Whether you can count what a class can actually do on a sample, which is the idea behind VC dimension and Sauer's lemma.

Key idea

A class is not as flexible as it first looks. On m points there are 2m imaginable 0/1 labellings, but a given class can usually produce only some of them. The growth function τH(m) is the largest number of different labellings that class H can produce on any m points. If τH(m)=2m the class can do everything on m points (it shatters them).

Steps

  1. Picture a row of m points on a line, and a class of rules that colour each point 0 or 1. A labelling is one complete way of colouring the row, such as 0, 0, 1.
  2. Count all possible labellings: each point has 2 choices, so there are 2m. For m=3 that is 23=8.
  3. Now count what thresholds can do. Sort the 3 points left to right. The rule gives 0 to points left of t and 1 to points at or right of t, so the labels must look like a block of 0s followed by a block of 1s.
  4. List them: 000, 001, 011, 111. That is 4 labellings, out of 8 possible. Patterns such as 010 or 101 are impossible for a threshold. In general thresholds give m+1 labellings on m points.
  5. Read off the meaning: τH(3)=4<8, so thresholds do not shatter 3 points. The growth function counts the labellings; the VC dimension is the largest m for which the count is still 2m.

Common mistakes

How long your answer should be

About 2 minutes: define the count, then list the four threshold labellings.

Read this

Previous in Learning theory: What does it mean for a hypothesis class to be PAC (probably approximately correct) learnable, and what roles do ϵ and δ play?
Next in Learning theory: What does it mean for a set of classifiers to shatter a set of points, and how do one-dimensional threshold rules ht(x)=1[x≥t] (which predict 1 if x≥t and 0 otherwise) shatter a single point?