SVMs are a type of supervised learning model for data classification. This is split up into two key types.

Linear SVM

The linear SVM operates on linearly separable data - where data can be classified on either side of a hyperplane.

The linear SVM generates this hyperplane as a margin, defined as:for the normal to the plane, .

This technique, however, is limited to linearly separable data. To extend this, we can use the kernel trick.

Kernel SVM

This is a method of fitting non linearly separable data onto a hyperplane, using a linear transformation.

The kernel function maps a set of points to a point in a new vector space. Using a polynomial kernel as an example, we may have: for a polynomial of degree .