Documentation

CslibFrontier.MachineLearning.Rademacher.GrowthFunction

Rademacher complexity of binary classes #

A binary concept class C becomes a class of {-1, +1}-valued functions signClass C through Cslib.BitString.signVal. On a sample S of m points its functions realize at most growthFunction C m restriction patterns, so Massart's lemma bounds its empirical Rademacher complexity by √(2 log Π_C(m) / m) [MohriRostamizadehTalwalkar2018, Corollary 3.8]. Sauer's lemma (Cslib.MachineLearning.PACLearning.growthFunction_le_exp_one_mul_div_pow) turns this into √(2 d log (e m / d) / m) for a class whose shattered sets have at most d ≤ m points [MohriRostamizadehTalwalkar2018, Corollary 3.18 and the proof of Corollary 3.19], and into √(2 d log (m + 1) / m) for every m.

Main definitions #

Main results #

References #

The {-1, +1}-valued functions x ↦ signVal (c x) of a binary concept class C.

theorem Cslib.MachineLearning.mem_signClass {α : Type u_1} {C : PACLearning.ConceptClass α Bool} {f : α → ℝ} :
f ∈ signClass C ↔ ∃ c ∈ C, (fun (x : α) => BitString.signVal (c x)) = f
theorem Cslib.MachineLearning.signClass_singleton {α : Type u_1} (c : α → Bool) :
signClass {c} = {fun (x : α) => BitString.signVal (c x)}

A single concept gives a single sign function.

theorem Cslib.MachineLearning.abs_le_one_of_mem_signClass {α : Type u_1} {C : PACLearning.ConceptClass α Bool} {f : α → ℝ} (hf : f ∈ signClass C) (x : α) :
|f x| ≤ 1

Functions of signClass C take values in [-1, 1].

The growth-function bound [MohriRostamizadehTalwalkar2018, Corollary 3.8]: the empirical Rademacher complexity of signClass C on m points is at most √(2 log Π_C(m) / m).

theorem Cslib.MachineLearning.empiricalRademacherComplexity_signClass_le_vc {α : Type u_1} {C : PACLearning.ConceptClass α Bool} {d : ℕ} (hC : ∀ (W : Finset α), PACLearning.SetShatters C ↑W → W.card ≤ d) {m : ℕ} (hdm : d ≤ m) (S : Fin m → α) :
empiricalRademacherComplexity (signClass C) S ≤ √(2 * (↑d * Real.log (Real.exp 1 * ↑m / ↑d)) / ↑m)

The VC bound [MohriRostamizadehTalwalkar2018, Corollaries 3.8 and 3.18]: if every finite set shattered by C has at most d ≤ m points, the empirical Rademacher complexity of signClass C on m points is at most √(2 d log (e m / d) / m).

theorem Cslib.MachineLearning.empiricalRademacherComplexity_signClass_le_add_one {α : Type u_1} {C : PACLearning.ConceptClass α Bool} {d : ℕ} (hC : ∀ (W : Finset α), PACLearning.SetShatters C ↑W → W.card ≤ d) {m : ℕ} (S : Fin m → α) :
empiricalRademacherComplexity (signClass C) S ≤ √(2 * (↑d * Real.log (↑m + 1)) / ↑m)

The polynomial VC bound: if every finite set shattered by C has at most d points, the empirical Rademacher complexity of signClass C on m points is at most √(2 d log (m + 1) / m).

The growth-function bound for the Rademacher complexity [MohriRostamizadehTalwalkar2018, Corollary 3.8].

theorem Cslib.MachineLearning.rademacherComplexity_signClass_le_vc {α : Type u_1} [Fintype α] (D : PMF α) {C : PACLearning.ConceptClass α Bool} {d : ℕ} (hC : ∀ (W : Finset α), PACLearning.SetShatters C ↑W → W.card ≤ d) {m : ℕ} (hdm : d ≤ m) :
rademacherComplexity D (signClass C) m ≤ √(2 * (↑d * Real.log (Real.exp 1 * ↑m / ↑d)) / ↑m)

The VC bound for the Rademacher complexity [MohriRostamizadehTalwalkar2018, Corollaries 3.8 and 3.18].