Kernels measure the similarity between two points
Another way to view kernels is that it computes of the inner product of
There are multiple types of kernels for different transformations.
- Linear:
- Polynomial:
- Gaussian:
Kernel Trick
The kernel trick is a strategy for applying linear models to non-linear data. By using a kernel in the modelโs dual form, which solely relies on the relationship between pairs of datapoints, we can effectively transform the data into another feature space where the classes are linearly separable. This trick is especially effective because kernels donโt require us to know the actual feature space.
This trick is most notably used in ๐ฉ๏ธ Support Vector Machines, allowing it to fit a curve to the original data.