For a class of classifiers, what is the growth function, i.e. how many different ways can the class label points? For the one-dimensional thresholds , 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 points there are imaginable labellings, but a given class can usually produce only some of them. The growth function is the largest number of different labellings that class can produce on any points. If the class can do everything on points (it shatters them).
Steps
- Picture a row of 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.
- Count all possible labellings: each point has 2 choices, so there are . For that is .
- Now count what thresholds can do. Sort the 3 points left to right. The rule gives 0 to points left of and 1 to points at or right of , so the labels must look like a block of 0s followed by a block of 1s.
- 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 labellings on points.
- Read off the meaning: , so thresholds do not shatter 3 points. The growth function counts the labellings; the VC dimension is the largest for which the count is still .
Common mistakes
- Using as the number of labellings every class can make. Only a very rich class reaches it.
- Forgetting that the growth function takes the best choice of points. We count the most labellings the class can produce on any points, not on one fixed set.
- Confusing the growth function with the VC dimension. One is a count for every ; the other is a single number, where the count stops being .
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 (which predict if and otherwise) shatter a single point?