Documentation

CslibFrontier.MachineLearning.PACLearning.Nonuniform

Nonuniform learnability #

A class C is nonuniformly learnable if the sample size needed to compete with a hypothesis h ∈ C may depend on h [ShalevShwartzBenDavid2014, Definition 7.1]: for every accuracy ε and confidence δ there is a learner, one for each sample size, such that for every h ∈ C and every distribution D of the family, from some sample size m₀(ε, δ, h) on the learner's error exceeds L_D(h) + ε with probability at most δ. PAC learnability asks for one sample size that works for every h simultaneously, measured against optimalError D C.

A countable union ⋃ i, H i of classes with uniform convergence rates ε i m δ → 0 is nonuniformly learnable by structural risk minimization [ShalevShwartzBenDavid2014, Theorems 7.3 and 7.5]. In particular every countable class whose hypotheses have measurable misclassification sets is nonuniformly learnable, as the union of its singletons with Hoeffding rates [ShalevShwartzBenDavid2014, Section 7.3], even when it has infinite VC dimension and is not PAC learnable.

The definition follows the upstream IsPACLearnable conventions: accuracy and confidence range over Set.Ioo (0 : ℝ≥0) 1, the distribution family is a parameter, and the learner may depend on ε and δ (the SRM learner depends only on δ). The source fixes one algorithm for all (ε, δ) in Definition 7.1 but runs SRM with confidence δ as an input.

Main definitions #

Main results #

References #

The class C is nonuniformly learnable over the family 𝒟 [ShalevShwartzBenDavid2014, Definition 7.1]: for every accuracy ε and confidence δ there are learners A m, one for each sample size, such that for every h ∈ C there is a sample size m₀ from which on, for every probability measure D ∈ 𝒟, the error of A m exceeds error D h + ε with probability at most δ.

theorem Cslib.MachineLearning.PACLearning.IsNonuniformLearnable.antitone_family {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {C : ConceptClass α β} {𝒟 𝒟' : Set (MeasureTheory.Measure (α × β))} (h𝒟 : 𝒟 ⊆ 𝒟') (hC : IsNonuniformLearnable C 𝒟') :

Nonuniform learnability is antitone in the distribution family.

theorem Cslib.MachineLearning.PACLearning.IsNonuniformLearnable.antitone_C {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {C C' : ConceptClass α β} {𝒟 : Set (MeasureTheory.Measure (α × β))} (hCC' : C ⊆ C') (hC : IsNonuniformLearnable C' 𝒟) :

Nonuniform learnability is antitone in the class.

theorem Cslib.MachineLearning.PACLearning.isNonuniformLearnable_iUnion {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [DecidableEq β] [Nonempty (α → β)] {ι : Type u_3} [Countable ι] {H : ι → ConceptClass α β} {𝒟 : Set (MeasureTheory.Measure (α × β))} {ε : ι → ℕ → ℝ → ℝ} (hH : ∀ (i : ι), HasUniformConvergenceRate (H i) 𝒟 (ε i)) (hε : ∀ (i : ι) (δ : ℝ), 0 < δ → Filter.Tendsto (fun (m : ℕ) => ε i m δ) Filter.atTop (nhds 0)) :
IsNonuniformLearnable (⋃ (i : ι), H i) 𝒟

Countable unions of uniformly convergent classes are nonuniformly learnable [ShalevShwartzBenDavid2014, Theorems 7.3 and 7.5]: if each class H i of a countable family has uniform convergence rate ε i over 𝒟 with ε i m δ → 0 as m → ∞ for every δ > 0, then ⋃ i, H i is nonuniformly learnable over 𝒟, by structural risk minimization. The rate plays the role of the source's ε_n(m, δ) (Equation (7.1)), defined there from the uniform convergence sample complexity. The learner charges class i the penalty max (ε i m (w i · δ)) 0 + e i / m for an injection e : ι → ℕ; the second term makes the penalties tend to infinity along the indices, so that an SRM minimizer exists on every sample, and vanishes as m → ∞. The instance Nonempty (α → β) supplies a learner when every class is empty. Theorem 7.5's explicit sample complexity m^UC_{H n(h)}(ε / 2, w(n(h)) δ) is not stated: the proof only produces some sample size, through the excess-risk guarantee IsSRM.measure_pi_exists_lt_error_le.

theorem Cslib.MachineLearning.PACLearning.isNonuniformLearnable_of_countable {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [Nonempty (α → β)] {C : ConceptClass α β} (hC : Set.Countable C) (hmeas : ∀ h ∈ C, MeasurableSet {p : α × β | h p.1 ≠ p.2}) :

Countable classes are nonuniformly learnable [ShalevShwartzBenDavid2014, Section 7.3]: every countable class whose hypotheses have measurable misclassification sets is nonuniformly learnable over all distributions, by SRM over its singletons with Hoeffding rates.