Closure of Measurable Learners under Combiners and Selection #
The algebra of MeasurableBatchLearners is closed under:
- arbitrary Boolean combiners (
combineLearner) - majority-vote boosting (
boostLearner) - measurable-set interpolation (
interpLearner) - countable selection (
concatLearner)
Part 1: combineLearner #
Combines k learners by a measurable Boolean function. Given learners L₁, …, Lₖ
and a jointly measurable combiner F : X × (Fin k → Bool) → Bool, returns a learner
whose prediction at x is F applied to x and the vector of base predictions. The
foundational closure operation: every other operation in this file is a special case.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Part 2: Measurability of combineLearner #
combineLearner preserves MeasurableBatchLearner whenever the combiner F is
jointly measurable. Factored through measurability of coordinate projections in the
product σ-algebra.
Part 3: Boost learner via majority vote #
Boosting via majority vote. Runs k base learners on the same training sample
and outputs the majority of their predictions at each query point. Used in the
boost_two_thirds_to_pac reduction that promotes a weak learner with success
probability at least 2/3 to a full PAC learner; the quantitative 7/12-Chebyshev
step lives in the proof of that reduction, not in the construction itself.
Equations
- boostLearner k L = combineLearner k (fun (x : X) (v : Fin k → Bool) => majority_vote k v) L
Instances For
Boosting preserves measurability. Majority vote is a measurable Boolean function of
finitely many inputs, so boostLearner inherits measurability via
measurableBatchLearner_combine.
Part 4: Interpolation learner #
Spatial interpolation: uses learner L₁ on a region A ⊆ X and learner L₂ on
its complement. The piecewise selector uses x ∈ A directly; measurability of A is
not required by the definition and appears only in the accompanying
measurableBatchLearner_interp theorem. The constructive content of the
Complexity/Interpolation.lean module.
Equations
Instances For
interpLearner preserves measurability when the region A is measurable. The
indicator of A composed with Measurable.ite and the two component learners gives a
measurable conditional selector.
Part 5: Uniform measurability for indexed families #
A family of batch learners indexed by ℕ with a uniform joint measurability
guarantee: for each m, the map (n, S, x) ↦ (L n).learn S x on
ℕ × (Fin m → X × Bool) × X is measurable. Required wherever a learner construction
selects among infinitely many components, in particular by concatLearner and the
monad's bind. Pointwise measurability of each individual L n is the easier
consequence (UniformMeasurableBatchFamily.pointwise); uniformity is the substantive
requirement.
Instances
A uniform measurable batch family is pointwise measurable: each individual L n
belongs to MeasurableBatchLearner. The uniform property factors through the constant
index embedding n ↦ (n, ·).
Part 6: Concat learner with measurable selection #
Sequential composition via a selector. Given a family of learners and a selector
sel : {m : ℕ} → (Fin m → X × Bool) → ℕ, runs L (sel S) on sample S. The composite
hypothesis space is the union of the component spaces. No measurability requirement on
sel is imposed at the definition level; the accompanying
measurableBatchLearner_concat theorem adds that hypothesis to derive closure under
the uniform-measurable family. The construction underlying the monadic bind.
Equations
Instances For
concatLearner preserves measurability when the selector is measurable and the
family is uniformly measurable. Composes the selector's measurability with the
family's uniform measurability to obtain joint measurability of the evaluation map in
(S, x).