ML.PartitionPredictor
Roll-up: finite-partition (piecewise-constant) predictors and their fixed-average ensembles, with the structural range-preservation property.
FinitePartitionPredictor 3 core · 0 supporting A finite-partition predictor has a finite set of cells, a map sending each input to its cell, and a value per cell. ★ FinitePartitionPredictor★ eval_eqOn_cell
Finite-partition predictors
A finite-partition predictor has a finite set of cells, a map sending each input to its cell, and a value per cell. The predictor is piecewise constant on those cells.
A piecewise-constant predictor on a finite partition: a finite index type cell of partition cells, a map chooseCell assigning each input to its cell, and a constant predicted value value on each cell.
Definition (Lean source)
A finite-partition prediction returns its cell's constant. It evaluates a finite-partition predictor on an input from its domain.
Definition (Lean source)
A finite-partition predictor is constant on each cell: the predictor returns the cell's assigned value throughout the inputs mapped to that cell.
Formal statement
Proof (Lean source)
Ensemble 3 core · 0 supporting This file models a fixed-size finite ensemble of FinitePartitionPredictors over an input type X. ★ PartitionEnsemble★ eval_mem_Icc
Finite-partition predictor ensembles
This file models a fixed-size finite ensemble of FinitePartitionPredictors over
an input type X. The public API consists of PartitionEnsemble, which stores
one predictor for each index in Fin T, and PartitionEnsemble.eval, their
uniform average.
The main structural theorem, PartitionEnsemble.eval_mem_Icc, states that a
nonempty ensemble preserves pointwise interval bounds: if every member's value
lies in [a, b] at every input, then the averaged value also lies in [a, b].
A finite-partition predictor ensemble: one predictor tree for each index in Fin T.
Definition (Lean source)
A finite-partition ensemble prediction is the memberwise average. It evaluates an ensemble with the specified member count at an input point in its domain.
Definition (Lean source)
A nonempty ensemble average preserves common member bounds. For the ensemble and evaluation point, this follows from having at least one member and uniform memberwise bounds at every input.