§9.1.1, Equation (9.1): a sample is separable iff some w has yᵢ⟨w, xᵢ⟩ ≥ 1 for all i
ProvedUnderstandingML.separable_iff_margin_onehalfspaceslinear-programmingseparability
§9.1.1, Equation (9.1). In the realizable case we look for with for all . If satisfies this, and , then for all (9.1); and clearly such a vector is an ERM predictor.
Formally: the sample is separable if and only if there is with for all .
Preamble
import Definitions.Def_UnderstandingML_Linear open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **§9.1.1, Equation (9.1)** (p. 119). In the realizable (separable) case there is a vector
with `yᵢ⟨w, xᵢ⟩ ≥ 1` for all `i` (scale a separating vector by `1/γ`, `γ = minᵢ yᵢ⟨w*, xᵢ⟩`),
and clearly such a vector separates the sample: separability is equivalent to the feasibility
of the linear constraints (9.1). -/
theorem separable_iff_margin_one {d m : ℕ} (x : Fin m → Vec d) (y : Fin m → ℝ) :
Separable x y ↔ ∃ w : Vec d, ∀ i, 1 ≤ y i * ⟪w, x i⟫_ℝ := 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, §9.1.1 p. 119, the derivation of Equation (9.1)
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.