Corollary 3.2: every finite hypothesis class is PAC learnable, by ERM, with sample complexity m_H(ε, δ) ≤ ⌈log(|H|/δ)/ε⌉
ProvedUnderstandingML.finite_class_pac_learnableermfinite-classespac-learningsample-complexity
Corollary 3.2. Every finite hypothesis class is PAC learnable with sample complexity .
Formally: for a nonempty finite class of measurable hypotheses , there is a learning algorithm implementing the rule that PAC learns (Definition 3.1) with the sample-complexity function ; in particular is PAC learnable.
Preamble
import Definitions.Def_UnderstandingML_Framework open MeasureTheory
Formal statement
namespace UnderstandingML
/-- **Corollary 3.2** (p. 44). Every finite hypothesis class is PAC learnable with sample complexity
`m_H(ε, δ) ≤ ⌈log(|H|/δ)/ε⌉`, and (Corollary 2.3) the `ERM_H` rule is a successful learner:
for a nonempty finite class of measurable hypotheses there is an ERM learner that PAC learns `H`
with the sample-complexity function `(ε, δ) ↦ ⌈log(|H|/δ)/ε⌉`; in particular `H` is PAC
learnable. -/
theorem finite_class_pac_learnable {X : Type*} [MeasurableSpace X] (H : Finset (X → Bool))
(hne : H.Nonempty) (hH : ∀ h ∈ H, Measurable h) :
(∃ A : Learner (X × Bool) (X → Bool), IsERMLearner loss01 (↑H) A ∧
IsPACWith (↑H) A (fun ε δ ↦ ⌈Real.log (H.card / δ) / ε⌉₊)) ∧
PACLearnable (↑H : Set (X → Bool)) := 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, §3.1 p. 44, Corollary 3.2 (rephrasing Corollary 2.3 in the PAC model)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.