Example 16.1: the degree-k polynomial kernel (1 + ⟨x,x'⟩)^k on ℝⁿ is ⟨ψ(x), ψ(x')⟩ for the monomial map ψ : ℝⁿ → ℝ^{(n+1)^k}
ProvedUnderstandingML.polynomial_kernelkernel-methodspolynomial-kernel
Example 16.1 (Polynomial Kernels). The degree polynomial kernel is . It is a kernel function: with , , so for with coordinate at , .
Preamble
import Definitions.Def_UnderstandingML_Kernel open MeasureTheory open scoped InnerProductSpace
Formal statement
namespace UnderstandingML
/-- **Example 16.1 (Polynomial Kernels)** (p. 220). The degree-`k` polynomial kernel
`K(x, x') = (1 + ⟨x, x'⟩)^k` on `ℝ^n` is a kernel function: there is a mapping `ψ : ℝ^n → ℝ^{(n+1)^k}`,
indexed by `J ∈ {0, 1, …, n}^k` with coordinate `∏ᵢ x_{Jᵢ}` (where `x₀ = 1`), such that
`K(x, x') = ⟨ψ(x), ψ(x')⟩`. -/
theorem polynomial_kernel (n k : ℕ) :
∃ ψ : Vec n → EuclideanSpace ℝ (Fin k → Fin (n + 1)),
∀ x x' : Vec n, polynomialKernel k x x' = ⟪ψ x, ψ x'⟫_ℝ := 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. 220, Example 16.1 with its derivation
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.