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]:
- no two points are shattered, since a threshold labelling the larger point
truelabels the smaller onetruetoo, so the VC dimension is1(vcDim_thresholdClassUpTo); - a learner can be forced to err once per step of a binary search, and halving matches this, so
the Littlestone dimension is
⌊log₂ (N + 1)⌋(littlestoneDim_thresholdClassUpTo).
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 #
Cslib.MachineLearning.OnlineLearning.MistakeBound.thresholdConcept: the thresholdx < θ.Cslib.MachineLearning.OnlineLearning.MistakeBound.thresholdClass: all thresholds.Cslib.MachineLearning.OnlineLearning.MistakeBound.thresholdClassUpTo: the thresholdsθ ≤ N.
Main results #
Cslib.MachineLearning.OnlineLearning.MistakeBound.littlestoneDim_thresholdClassUpTo:littlestoneDim (thresholdClassUpTo N) = ⌊log₂ (N + 1)⌋.Cslib.MachineLearning.OnlineLearning.MistakeBound.optimalMistakeBound_thresholdClassUpTo_pow: [Littlestone1988, §3, Example 3],2 ^ nthresholds have optimal mistake boundn.Cslib.MachineLearning.OnlineLearning.MistakeBound.vcDim_thresholdClassUpTo: VC dimension1forN ≥ 1.Cslib.MachineLearning.OnlineLearning.MistakeBound.littlestoneDim_thresholdClass,Cslib.MachineLearning.OnlineLearning.MistakeBound.vcDim_thresholdClass: all thresholds have infinite Littlestone dimension and VC dimension1.
References #
- [N. Littlestone, Learning quickly when irrelevant attributes abound: a new linear-threshold algorithm][Littlestone1988]
The threshold concept: x is labelled true iff x < θ.
Equations
Instances For
The class of all threshold concepts on ℕ.
Equations
Instances For
The threshold concepts with θ ≤ N.
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.
No two points are shattered by thresholds.
A class of thresholds that shatters a point has VC dimension 1.
For N ≥ 1, the thresholds θ ≤ N have VC dimension 1.
All thresholds together have VC dimension 1.