§31.1: by linearity of expectation the generalization loss of the randomized rule Q is E_{z∼D}[ℓ(Q,z)] = E_{h∼Q}[L_D(h)] = L_D(Q)
ProvedUnderstandingML.gibbs_loss_riskfubinigibbs-predictorpac-bayes
§31.1 (p. 415). We define the loss of on an example to be . By the linearity of expectation, the generalization loss and training loss of can be written as and .
Formally: for a jointly measurable -valued loss (Fubini).
Preamble
import Definitions.Def_UnderstandingML_PACBayes open MeasureTheory
Formal statement
namespace UnderstandingML
/-- **§31.1** (p. 415). By the linearity of expectation, the generalization loss of the
randomized rule `Q` is `E_{z ∼ D}[ℓ(Q, z)] = E_{h ∼ Q}[L_D(h)] = L_D(Q)`. The loss is jointly
measurable and bounded, `D` and `Q` probability measures. -/
theorem gibbs_loss_risk {Z Hyp : Type*} [MeasurableSpace Z] [MeasurableSpace Hyp]
(loss : Hyp → Z → ℝ) (hmeas : Measurable (Function.uncurry loss))
(hloss : ∀ h z, loss h z ∈ Set.Icc (0 : ℝ) 1) (D : Measure Z) [IsProbabilityMeasure D]
(Q : Measure Hyp) [IsProbabilityMeasure Q] :
∫ z, gibbsLoss loss Q z ∂D = gibbsRisk loss D Q := 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, §31.1 p. 415, the definitions of ℓ(Q, z) and L_D(Q)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.