A Support Vector Machine (SVM) is a very powerful and flexible Machine Learning Model, capable of performing linear or nonlinear classification, regression, and even outlier detection. It is one of the most popular models in Machine Learning , and anyone interested in ML should have it in their toolbox. SVMs are particularly well suited for classification of complex but small or medium sized datasets. In this post we will explore SVM model for classification and will implement in Python.
Linear SVM
Let’s say we have 2 classes of data which we want to classify using SVM as shown in the figure.
The 2 classes can clearly be seperated easily with a straight line (linearly seperable). The left pl