Lemma 4.2: on an ε/2-representative sample every ERM hypothesis has L_D(h_S) ≤ min_{h ∈ H} L_D(h) + ε
ProvedUnderstandingML.erm_of_representativeermuniform-convergence
Lemma 4.2. Assume that a training set is -representative (w.r.t. domain , hypothesis class , loss function , and distribution ). Then, any output of , namely, any , satisfies .
Formally: if is -representative and is an ERM hypothesis for , then for every .
Preamble
import Definitions.Def_UnderstandingML_Framework open MeasureTheory
Formal statement
namespace UnderstandingML
/-- **Lemma 4.2** (p. 54). Assume that a training set `S` is `ε/2`-representative (w.r.t. domain
`Z`, hypothesis class `H`, loss function `ℓ`, and distribution `D`). Then any output of
`ERM_H(S)`, namely any `h_S ∈ argmin_{h ∈ H} L_S(h)`, satisfies
`L_D(h_S) ≤ min_{h ∈ H} L_D(h) + ε` (stated as `L_D(h_S) ≤ L_D(h) + ε` for every `h ∈ H`). -/
theorem erm_of_representative {Z : Type*} [MeasurableSpace Z] {Hyp : Type*}
(loss : Hyp → Z → ℝ) (H : Set Hyp) (D : Measure Z) {ε : ℝ} {m : ℕ} (S : Fin m → Z)
(hS : IsRepresentative loss H D (ε / 2) S) (h : Hyp) (hERM : IsERM loss H S h) :
∀ h' ∈ H, risk loss D h ≤ risk loss D h' + ε := 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.1 pp. 54-55, Lemma 4.2 with its proof
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.