Theorem 7.4: with probability ≥ 1 − δ, |L_D(h) − L_S(h)| ≤ εₙ(m, w(n)δ) simultaneously for every n and h ∈ Hₙ
ProvedUnderstandingML.srm_boundstructural-risk-minimizationuniform-convergenceunion-bound
Theorem 7.4. Let be a function such that . Let be a hypothesis class that can be written as , where for each , satisfies the uniform convergence property with a sample complexity function . Let be as defined in Equation (7.1). Then for every and distribution , with probability of at least over the choice of , the following bound holds simultaneously for every and : .
Formally: the -probability that for some with at which is defined some has is at most ; the condition is stated on partial sums.
Preamble
import Definitions.Def_UnderstandingML_Nonuniform open MeasureTheory
Formal statement
namespace UnderstandingML
/-- **Theorem 7.4** (p. 86). Let `w : ℕ → [0,1]` be a function such that `∑ₙ w(n) ≤ 1`. Let
`H = ⋃ₙ Hₙ`, where each `Hₙ` satisfies the uniform convergence property with a sample
complexity function `m^{UC}_{Hₙ}`, and let `εₙ` be as in Equation (7.1). Then for every
`δ ∈ (0,1)` and distribution `D`, with probability of at least `1 − δ` over the choice of
`S ∼ D^m`, the following holds simultaneously for every `n` and `h ∈ Hₙ`:
`|L_D(h) − L_S(h)| ≤ εₙ(m, w(n)·δ)`. The bound is asserted for the indices `n` with
`w(n) > 0` at which `εₙ(m, w(n)·δ)` is defined (the set in (7.1) is nonempty); the sum
condition is stated on the partial sums. -/
theorem srm_bound {Z : Type*} [MeasurableSpace Z] {Hyp : Type*} (loss : Hyp → Z → ℝ)
(Hn : ℕ → Set Hyp) (mUC : ℕ → ℝ → ℝ → ℕ)
(hUC : ∀ n, HasUniformConvergenceWith loss (Hn n) (mUC n)) (w : ℕ → ℝ)
(hw : ∀ n, 0 ≤ w n ∧ w n ≤ 1) (hsum : ∀ N, ∑ n ∈ Finset.range N, w n ≤ 1) {δ : ℝ}
(hδ0 : 0 < δ) (hδ1 : δ < 1) (D : Measure Z) [IsProbabilityMeasure D] (m : ℕ) :
iidLaw D m {S | ∃ n, 0 < w n ∧ RateDefined (mUC n) m (w n * δ) ∧
∃ h ∈ Hn n, epsRate (mUC n) m (w n * δ) < |risk loss D h - empRisk loss S h|} ≤
ENNReal.ofReal δ := 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, §7.2 pp. 86-87, Theorem 7.4 with its proof
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.