Documentation

CslibFrontier.MachineLearning.PACLearning.SampleComplexityLower.AdversarialMeasure

Adversarial Measure Construction #

Given a shattered set W with |W| ≥ 2, we construct a discrete probability measure P supported on W. We pick an arbitrary element w₀ ∈ W as the "heavy" point and put:

Main definitions #

Main statements #

noncomputable def Cslib.MachineLearning.PACLearning.adversarialMeasure {α : Type u_1} [MeasurableSpace α] (W : Finset α) (w₀ : α) (ε' : ℝ) :

The adversarial probability measure for the EHKV lower bound. Concentrated on a finite set W, with a heavy point w₀ carrying mass 1 - 8ε and each of the remaining d = |W| - 1 points carrying mass 8ε/d.

theorem Cslib.MachineLearning.PACLearning.adversarialMeasure_isProbabilityMeasure {α : Type u_1} [MeasurableSpace α] {W : Finset α} {w₀ : α} {ε' : ℝ} (hε'_pos : 0 < ε') (hε'_le : ε' ≤ 1 / 8) (hd : 1 ≤ (W.erase w₀).card) :

The adversarial measure is a probability measure when 0 < ε ≤ 1/8 and |W \ {w₀}| ≥ 1.

theorem Cslib.MachineLearning.PACLearning.adversarialMeasure_singleton {α : Type u_1} [MeasurableSpace α] [MeasurableSingletonClass α] {W : Finset α} {w₀ : α} {ε' : ℝ} {w : α} (hw : w ∈ W.erase w₀) :
(adversarialMeasure W w₀ ε') {w} = ENNReal.ofReal (8 * ε' / ↑(W.erase w₀).card)

The adversarial measure assigns mass 8ε'/d to each point in W \ {w₀}.

theorem Cslib.MachineLearning.PACLearning.adversarialMeasure_support {α : Type u_1} [MeasurableSpace α] [MeasurableSingletonClass α] {W : Finset α} {w₀ : α} (hw₀ : w₀ ∈ W) {ε' : ℝ} :
(adversarialMeasure W w₀ ε') (↑W)ᶜ = 0

The adversarial measure is supported on W: all mass outside W is zero.