Documentation

CslibFrontier.MachineLearning.OnlineLearning.MistakeBound.Thresholds

Thresholds: VC dimension one, unbounded Littlestone dimension #

The threshold concept thresholdConcept θ : ℕ → Bool labels x with true iff x < θ. The thresholds θ ≤ N (thresholdClassUpTo N) separate the VC dimension from the Littlestone dimension [Littlestone1988, §3, Example 3]:

So the chain vcDim C ≤ littlestoneDim C ≤ ⌊log₂ |C|⌋ can be strict in its first inequality by an arbitrary amount. For N = 2 ^ n - 1 this is Littlestone's example: 2 ^ n thresholds, VC dimension 1 and optimal mistake bound n. The class of all thresholds (thresholdClass) has VC dimension 1 and infinite Littlestone dimension. It is learnable in the PAC model (isPACLearnable_thresholdClass in CslibFrontier/MachineLearning/PACLearning/Compression/Thresholds.lean) but not with finitely many mistakes.

Littlestone's Example 3 uses the instance space {1, …, 2 ^ n - 1} and the thresholds f_j(x) = 1 iff x < j for j ∈ {1, …, 2 ^ n}. Here the instance space is all of ℕ and θ ∈ {0, …, 2 ^ n - 1}. The two classes have the same number of thresholds and the same dimensions; the instances x ≥ N add nothing, since every threshold labels them false.

Main definitions #

Main results #

References #

The threshold concept: x is labelled true iff x < θ.

Equations
Instances For

    Binary search: the thresholds θ ∈ [lo, lo + 2 ^ k - 1] have a complete k-mistake tree, whose root is labelled with the midpoint lo + 2 ^ (k - 1) - 1.

    The thresholds θ ≤ N have Littlestone dimension ⌊log₂ (N + 1)⌋.

    [Littlestone1988, §3, Example 3]: the 2 ^ n thresholds θ < 2 ^ n have optimal mistake bound n.

    All thresholds together have infinite Littlestone dimension: no learner has a finite mistake bound.

    For N ≥ 1, the thresholds θ ≤ N have VC dimension 1.