Documentation

CslibFrontier.MachineLearning.PACLearning.VCDimension

Basic facts about the VC dimension #

The VC dimension is the supremum of shattered cardinalities in ℕ∞ [ShalevShwartzBenDavid2014, Definition 6.5]. The definition evcDim and its order bounds come from cslib#966 at 18e0d4fc. On a class of finite VC dimension, natCast_vcDim identifies the natural number in the pinned cslib API with this supremum.

The VC dimension is the supremum of the sizes of finite shattered sets. A class shattering arbitrarily large sets has dimension ⊤ [ShalevShwartzBenDavid2014, Definition 6.5].

Every shattered finite set has cardinality at most the extended VC dimension.

theorem Cslib.MachineLearning.PACLearning.evcDim_le_iff {α : Type u_1} {C : ConceptClass α Bool} {n : ℕ∞} :
evcDim C ≤ n ↔ ∀ (W : Finset α), SetShatters C ↑W → ↑W.card ≤ n

Bounding the VC dimension amounts to bounding every finite shattered set.

A finite set shattered by a class of finite VC dimension has at most vcDim C elements.

For a finite-dimensional class the natural and extended VC dimensions agree.

The extended VC dimension is infinite precisely when shattered cardinalities are unbounded.

Every class on a finite domain has finite VC dimension.