Machine Learning A-Z: Part 3 – Classification (Kernel SVM Intuitioin)

Kernel SVM Intuitioin

Data Type:
– Linearly Separable
– Not Linearly Separable => Kernel SVM

A Higher-Dimensional Space

Mapping to a higher dimension.

[1D Space] (x1)
f = x -5

[2D Space] (x1, x2)
f = (x -5)^2

[3D Space] (x1, x2, z)
=> can be highly compute-intensive.

The Gaussian RBF Kernel

Types of Kernel Functions

– Gaussian RBF Kernel
K(x,l→i) = e -(||x-l→i||2) / 2σ2

– Sigmoid Kernel
K(X,Y) = tanh(γ・XTY + r)

– Polynomial Kernel
K(X,Y) = (γ・XTY + r)d,γ>0

http://mlkernels.readthedocs.io/en/latest/kernels.html
(http://mlkernels.readthedocs.io/en/latest/kernelfunctions.html)

Implementation

Python

R

ページトップへ