Professional Documents
Culture Documents
Presented By
5/7/2022 1
Outline
What is Support Vector Machine (SVM)?
5/7/2022 2
1. What is Support Vector Machine?
Support Vector Machine” (SVM) is a supervised machine learning algorithm that can be used for both classification or
The goal of SVM is to divide the datasets into classes to find a maximum marginal hyperplane (MMH) in an N-
dimensional space. The dimension of the hyperplane depends upon the number of features.
If the number of input features is two, then the hyperplane is just a line. If the number of input features is three, then the
hyperplane becomes a 2-D plane. It becomes difficult to imagine when the number of features exceeds three.
5/7/2022 3
2. How does it work?
As shown in the graph below, we can achieve exactly
L3).
5/7/2022 5
2. How does it work?
Support Vectors − Datapoints that are closest to the hyperplane is called support vectors. Separating line will be
Hyperplane − It is a decision plane or space which is divided between a set of objects having different classes.
Margin − It may be defined as the gap between two lines on the closet data points of different classes. It can be
calculated as the perpendicular distance from the line to the support vectors..
5/7/2022 6
2. How does it work?
Large margin is considered as a good margin and
correctly.
5/7/2022 7
3. Applications Area of SVM in Real
World
SVMs depends on supervised learning algorithms. The aim of using SVM is to correctly classify unseen data. SVMs
5/7/2022 8
4. Pros and Cons Associated with SVM
Pros:
Also works well when total dimensions are more than samples.
It uses a subset of training points in the decision function (called support vectors), so it is also memory efficient.
5/7/2022 9
4. Pros and Cons Associated with SVM
Cons:
Doesn’t work well when every data point's total features exceed total training data samples. Also for larger data sets, it’s
When target classes overlap or there’s more noise in a data set, it starts to lag. Plus there’s a lack of probabilistic
SVM doesn’t directly provide probability estimates, these are calculated using an expensive five-fold cross-validation.
5/7/2022 10
5. How to implement SVM in Python?
5/7/2022 11
References
1. https://data-flair.training/blogs/applications-of-svm/
2. https://www.kdnuggets.com/2020/03/machine-learning-algorithm-svm-explained.html
3. https://www.geeksforgeeks.org/support-vector-machine-algorithm/
4. https://www.geeksforgeeks.org/support-vector-machine-algorithm/
5. https://www.analyticsvidhya.com/blog/2017/09/understaing-support-vector-machine-example-code/
6. https://towardsdatascience.com/support-vector-machine-introduction-to-machine-learning-algorithms-934a444fca47
7. https://jpt.spe.org/top-machine-learning-algorithm-explained-support-vector-
machines?gclid=Cj0KCQjwyMiTBhDKARIsAAJ-9VuwJBPCUCXBpZaKiZg-dCvNwFzdJlN7jgEfzDdyYcTfkrukwj-
OvS4aAs-FEALw_wcB
8. https://www.quora.com/What-are-some-pros-and-cons-of-Support-Vector-Machines
5/7/2022 12
THANK YOU SO MUCH!
5/7/2022 13