Learn Before
Concept

Proof of Quadratic Kernel

One popular kernel is the Quadratic Kernel. Below we prove the kernel with a given set of parameters.

From the below proof we see what is meant by an implicit feature mapping. Instead of computing f(x),f(z)f(\vec{x}), f(\vec{z}), then f(x)f(z)f(\vec{x}) \cdot f(\vec{z}), we compute the kernel and skip 1 step of computation.

To see how the kernel and a feature mapping work together, lets prove that the feature mapping

f:R2R5 where f([x1x2]T)=[x12 x1 x2 2x1x2 x22 1]2f: \mathbb{R}^2 \to \mathbb{R}^5 \text{ where } f([x_1 x_2]^T) = [x_1^2 \ x_1 \ x_2 \ \sqrt{2}x_1x_2 \ x_2^2 \ 1]^2

corresponds to the kernel K(x,z)=(xz+1)2K(\vec{x},\vec{z}) = (\vec{x} \cdot \vec{z} + 1)^2.

(Capture generated by myself on overleaf.com)

Image 0

0

1

Updated 2020-03-06

Tags

Data Science