Equation (16.3): for w = ∑ⱼ αⱼψ(xⱼ) the objective of (16.2) is f(∑ⱼ αⱼK(xⱼ,x₁), …) + R(√(∑ᵢⱼ αᵢαⱼK(xⱼ,xᵢ)))
ProvedUnderstandingML.kernel_objective_identitykernel-methodskernel-trick
Equation (16.3). Writing , we have and , so instead of solving (16.2) we can solve the equivalent problem
which needs only the Gram matrix.
Preamble
import Definitions.Def_UnderstandingML_Kernel open MeasureTheory open scoped InnerProductSpace
Formal statement
universe u
namespace UnderstandingML
/-- **Equation (16.3)** (p. 219). Writing `w = ∑ⱼ αⱼ ψ(xⱼ)`, the objective of (16.2) equals
`f(∑ⱼ αⱼK(xⱼ, x₁), …, ∑ⱼ αⱼK(xⱼ, x_m)) + R(√(∑ᵢⱼ αᵢαⱼ K(xⱼ, xᵢ)))`, so that (16.2) can be solved
knowing only the Gram matrix. -/
theorem kernel_objective_identity {X : Type u} {F : Type*} [NormedAddCommGroup F]
[InnerProductSpace ℝ F] [CompleteSpace F] {m : ℕ} (ψ : X → F) (x : Fin m → X)
(f : (Fin m → ℝ) → ℝ) (R : ℝ → ℝ) (α : Fin m → ℝ) :
kernelObjective ψ x f R (∑ j, α j • ψ (x j)) =
f (fun i ↦ ∑ j, α j * kernelOf ψ (x j) (x i)) +
R (Real.sqrt (∑ i, ∑ j, α i * α j * kernelOf ψ (x j) (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, §16.2 p. 219, Equation (16.3) with its derivation
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.