Documentation

CslibFrontier.MachineLearning.Rademacher.ConvexHull

Rademacher complexity of convex hulls #

Taking the convex hull of a bounded set of vectors or real-valued functions does not change its Rademacher complexity [MohriRostamizadehTalwalkar2018, Lemma 7.4] [ShalevShwartzBenDavid2014, Lemma 26.7]. For every fixed sign vector ฯƒ : Fin m โ†’ Bool, the correlation functional f โ†ฆ ๐”ผ i, signVal (ฯƒ i) * f (S i) is affine, so its sublevel sets are convex. Hence the supremum over convexHull โ„ F equals the supremum over F pointwise in ฯƒ, and averaging over ฯƒ gives Rฬ‚_S(conv F) = Rฬ‚_S(F) (and R_m(conv F) = R_m(F) under any distribution on a finite domain).

Unlike [BartlettMendelson2002, Theorem 12(2)], whose two-sided Rademacher complexity takes the absolute value |โˆ‘ i, ฯƒ_i f(z_i)| and is therefore also invariant under taking the symmetric (absolute) convex hull, this library uses the one-sided Rademacher complexity of [MRT18] and [SSBD14]. The convex hull invariance holds verbatim for the one-sided definition with no symmetry requirement on F.

Main results #

References #

theorem Cslib.MachineLearning.abs_le_of_mem_convexHull {Z : Type u_1} {F : Set (Z โ†’ โ„)} {B : โ„} (hF : โˆ€ f โˆˆ F, โˆ€ (z : Z), |f z| โ‰ค B) {f : Z โ†’ โ„} (hf : f โˆˆ (convexHull โ„) F) (z : Z) :

A pointwise uniform bound |f z| โ‰ค B extends from a function class F to its convex hull.

theorem Cslib.MachineLearning.rademacherAverage_convexHull {m : โ„•} {A : Set (Fin m โ†’ โ„)} {B : โ„} (hA : โˆ€ v โˆˆ A, โˆ€ (i : Fin m), |v i| โ‰ค B) :
(rademacherAverage fun (v : โ†‘((convexHull โ„) A)) => โ†‘v) = rademacherAverage fun (v : โ†‘A) => โ†‘v

Rademacher average of a convex hull [ShalevShwartzBenDavid2014, Lemma 26.7]: taking the convex hull of a uniformly bounded set A : Set (Fin m โ†’ โ„) preserves its Rademacher average.

theorem Cslib.MachineLearning.empiricalRademacherComplexity_convexHull {Z : Type u_1} {F : Set (Z โ†’ โ„)} {B : โ„} (hF : โˆ€ f โˆˆ F, โˆ€ (i : Z), |f i| โ‰ค B) {m : โ„•} (S : Fin m โ†’ Z) :

Empirical Rademacher complexity of a convex hull [MohriRostamizadehTalwalkar2018, Lemma 7.4]: for a uniformly bounded function class F : Set (Z โ†’ โ„) and any sample S : Fin m โ†’ Z, Rฬ‚_S(conv F) = Rฬ‚_S(F).

theorem Cslib.MachineLearning.rademacherComplexity_convexHull {Z : Type u_1} [Fintype Z] (D : PMF Z) {F : Set (Z โ†’ โ„)} {B : โ„} (hF : โˆ€ f โˆˆ F, โˆ€ (z : Z), |f z| โ‰ค B) (m : โ„•) :

Rademacher complexity of a convex hull [MohriRostamizadehTalwalkar2018, Lemma 7.4]: for a uniformly bounded function class F : Set (Z โ†’ โ„) on a finite domain Z, R_m(conv F) = R_m(F).