Corollary 4.6: a finite class with a [0,1]-valued loss has uniform convergence with m^UC ≤ ⌈log(2|H|/δ)/(2ε²)⌉ and is agnostic PAC learnable by ERM
ProvedUnderstandingML.finite_class_uniform_convergenceagnostic-pacermfinite-classeshoeffdinguniform-convergence
Corollary 4.6. Let be a finite hypothesis class, let be a domain, and let be a loss function. Then enjoys the uniform convergence property with sample complexity . Furthermore, the class is agnostically PAC learnable using the ERM algorithm with sample complexity .
Formally: for a finite class whose losses are measurable with values in : has the uniform convergence property with the function ; every ERM learner satisfies the agnostic PAC guarantee with ; and if is nonempty it is agnostic PAC learnable.
Preamble
import Definitions.Def_UnderstandingML_Framework open MeasureTheory
Formal statement
namespace UnderstandingML
/-- **Corollary 4.6** (p. 57). Let `H` be a finite hypothesis class, `Z` a domain, and
`ℓ : H × Z → [0, 1]` a loss function. Then `H` enjoys the uniform convergence property with sample
complexity `m^{UC}_H(ε, δ) ≤ ⌈log(2|H|/δ)/(2ε²)⌉`; furthermore, the class is agnostically PAC
learnable using the ERM algorithm with sample complexity
`m_H(ε, δ) ≤ m^{UC}_H(ε/2, δ) ≤ ⌈2 log(2|H|/δ)/ε²⌉`. Stated for a finite class whose losses
`ℓ(h, ·)` are measurable with values in `[0, 1]`; the last clause needs `H` nonempty for an ERM
learner to exist. -/
theorem finite_class_uniform_convergence {Z : Type*} [MeasurableSpace Z] {Hyp : Type*}
(loss : Hyp → Z → ℝ) (H : Finset Hyp) (hmeas : ∀ h ∈ H, Measurable (loss h))
(hrange : ∀ h ∈ H, ∀ z, loss h z ∈ Set.Icc (0 : ℝ) 1) :
HasUniformConvergenceWith loss (↑H) (fun ε δ ↦ ⌈Real.log (2 * H.card / δ) / (2 * ε ^ 2)⌉₊) ∧
(∀ A : Learner Z Hyp, IsERMLearner loss (↑H) A →
IsAgnosticPACWith loss (↑H) A (fun ε δ ↦ ⌈2 * Real.log (2 * H.card / δ) / ε ^ 2⌉₊)) ∧
(H.Nonempty → AgnosticPACLearnable loss (↑H : Set Hyp)) := by sorry
end UnderstandingML
Source
Shalev-Shwartz and Ben-David, Understanding Machine Learning: From Theory to Algorithms, Cambridge University Press 2014, doi:10.1017/CBO9781107298019, §4.2 pp. 55-57, Corollary 4.6 with its proof (the union bound (4.1) and Hoeffding (4.2))
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.