Documentation

CslibFrontier.MachineLearning.PACLearning.RealizableSample

Realizable distributions give realizable samples #

This file connects the distribution-level realizability assumption IsRealizableBy D C (some concept of C has zero true error under D) with the sample-level notions Realizable C S, VersionSpace C S and IsConsistent A C. Under i.i.d. sampling from a realizable distribution, almost every sample is labeled by the zero-error concept, so it is realizable and every consistent learner outputs a concept of the version space. The pushforward of a domain distribution along the graph of a concept of C is realizable; this is the "domain distribution plus labeling function" form of realizability in [ShalevShwartzBenDavid2014, Definition 2.1].

Main results #

References #

theorem Cslib.MachineLearning.PACLearning.measurableSet_misclassified {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [MeasurableEq β] {h : α → β} (hh : Measurable h) :
MeasurableSet {p : α × β | h p.1 ≠ p.2}

The set of examples misclassified by a measurable hypothesis is measurable, provided equality on the label type is a measurable relation (for example, β countable with measurable singletons).

theorem Cslib.MachineLearning.PACLearning.ae_apply_eq_of_error_eq_zero {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] {D : MeasureTheory.Measure (α × β)} {h : α → β} (hh : error D h = 0) :
∀ᵐ (p : α × β) ∂D, h p.1 = p.2

A hypothesis of zero true error labels almost every example correctly.

Realizable distributions give realizable samples. If D is realizable by C, then m i.i.d. examples from D are almost surely labeled by a single concept of C.

Under i.i.d. sampling from a distribution realizable by C, a consistent learner almost surely outputs a concept of the version space.

theorem Cslib.MachineLearning.PACLearning.isRealizableBy_map_graph {α : Type u_1} {β : Type u_2} [MeasurableSpace α] [MeasurableSpace β] [MeasurableEq β] (P : MeasureTheory.Measure α) {C : ConceptClass α β} {c : α → β} (hc : c ∈ C) (hcm : Measurable c) :
IsRealizableBy (MeasureTheory.Measure.map (fun (x : α) => (x, c x)) P) C

The pushforward of a distribution on the domain along the graph x ↦ (x, c x) of a measurable concept c ∈ C is realizable by C.

@[simp]

No distribution is realizable by the empty class.

Over the distributions realizable by the empty class, which are none, every learner is an (ε, δ)-PAC learner.