Support Vector Machine: Scenario 1
Support Vector Machine: Scenario 1
Scenario 1: We can see in the below image that we need to classify a group of stars and circle
from each other. To do this we can image to take three hyperplanes namely A, B and C. To
classify two classes, we can have many hyperplanes but here we are taking only 3 hyperplanes,
also, one important thing that should be kept in mind that the plane should have maximum
margin i.e., maximum distance between two classes of the data points. So we can say that
hyperplane B fulfills are our requirement and is the best hyperplane to classify stars and circle.
Scenario 2: We can see in the below image that we need to classify a group of stars and circles
from each other. We can achieve this by taking example of three hyperplanes namely A, B and
C.
We can see from the image that the hyperplane C is best hyperplane in this situation as it has
maximum distance from the farthest data points from both the classes (stars and circles).
Robust to outliers: One of the important features of SVM are that they are very effective in
dealing with the Outliers. Let us try to understand this with the help of following situation:
Fig 1 Fig 2
As we can see from Fig 1 that one star is lying in the region of the circles. This star is certainly a outlier,
so in this case SVM ignores the outlier and finds a hyperplane which has maximum margin from the data
points and thus classify the stars and circles into two correct groups as seen in Fig 2.
Applications:
1. SVM is used in handwriting recognition.
2. It is used in Facial Recognition.
3. It is used in Image classification.
Advantages :
1. It is very effective in high dimensional spaces.
2. It is memory efficient.
3. It is also efficient in cases where dimensions are greater than the number of samples.
Disadvantages:
1. It is not suitable for situations where the dataset is large.
2. It performs poor when the dataset has more noise.
3. If the number of features for data points is greater than the number of training data
samples, SVM performs poorly.