Documentation

CslibFrontier.MachineLearning.OnlineLearning.MistakeBound.VCDimension

VC dimension and Littlestone dimension #

A set shattered by C (cslib's PACLearning.SetShatters) gives a complete mistake tree: label the nodes at depth j with the j-th point of the set (hasMistakeTree_of_setShatters). Hence the VC dimension is at most the Littlestone dimension (vcDim_le_littlestoneDim), and so at most the optimal mistake bound [Littlestone1988, §3, Theorem 4]. In particular a class of infinite VC dimension has infinite Littlestone dimension. With the halving bound this gives the chain vcDim C ≤ littlestoneDim C ≤ ⌊log₂ |C|⌋ for finite classes. Both inequalities are tight for the class of all Boolean functions on a finite domain (littlestoneDim_univ). The first can be far from tight: see CslibFrontier.MachineLearning.OnlineLearning.MistakeBound.Thresholds.

cslib's vcDim is 0, not infinite, for classes of infinite VC dimension. For those classes vcDim_le_littlestoneDim is trivial, and littlestoneDim_eq_top_of_not_hasFiniteVCDim is the meaningful statement.

Main results #

References #

A finite set W shattered by C gives a complete mistake tree of height |W| [Littlestone1988, §3, proof of Theorem 4].

The VC dimension is at most the Littlestone dimension.

[Littlestone1988, §3, Theorem 4]: the VC dimension is at most the optimal mistake bound.

The class of all Boolean functions on a finite domain α has Littlestone dimension |α|: the whole domain is shattered, and there are 2 ^ |α| functions.