Kernel Trick

The Kernel Trick in Support Vector Machine (SVM) | Visually Explained.

  • Some times we do feature expansion (), so that our linear model can have a high-dimensional decision boundary.
  • But this comes with two challenges:
    • What should the non-linear transformation be? 2nd order? 3rd order? Which terms should be included and which can be omitted?
    • When there are many features, the complexity of computation skyrockets.
  • However, we don’t really need to know to work on it! All we need to know, is how similar is to , because models like SVM is distance based!

Therefore, we can define a kernel as a “similarity measure”: . It must be symmetric and positive semidefinite i.e. ().