Professional Documents
Culture Documents
Support Vector Machine
Support Vector Machine
Support Vector Machine
Machine
Sari, Mary Joy C.
Pateno, Paloma
Trugeder, Sanchez
Ugdiman, Mishelle
• What is Machine Learning?
• What is Supervised Learning?
• So what’s an Algorithm?
Agenda •
•
What is a Support Vector Machine?
How does a Support Vector Machine work?
• Types of Support Vector Machine?
• Pros and Cons of Support Vector Machine?
• Executable Sample of Support Vector Machine
What is Machine Learning?
Machine Learning
Machine Learning
Classification
Support Vector Machine
Regression
Supervised Learning
Machine learning model learns from the past input data and makes future predictions as output.
Got it!
Star
What is a Support Vector Machine?
• Support Vector Machines is one of the most popular Supervised Learning algorithms, which is
used for Classification as well as Regression problems. However, primarily it is used for
classification problems in Machine Learning.
• The goal of the SVM algorithm is to create the best line or decision boundary that can segragate
n-dimensional space into classes so that we can easily put the new data point in the correct
category in the future.
• Svm is deffirent from other classification algorithms because of the way they choose boundary
that maximizes the distance from the nearest data points of all the classes.
• The best decision boundary created by SVM is called a Hyperplane.
Important Terms
• Support Vectors: These are the points that are closest to the hyperplane. A separating
line will be defined with the help of these data points.
• Margin: It is the distance between the hyperplane (support vector). In SVM large margin
is considered a good margin. There are two types of margins Hard margin and Soft
margin.
• Supposed we see a
strange cat that also has
some features of dogs, so
if we want a model that
can accurately identify
whether it is a cat or dog,
so such model can be
created by using the SVM
algorithm.
• We will first train our
model with lots of images
of cats and dogs so that it
can learn about different
features of cats and dogs,
and then we test it with
this strange creature.
Types of Support Vector Machine?
1. Linear SVM
• Is used for separable data, which means if a dataset can be classified
into two classes by using a single straight line, then such data is termed
as linearly separable data, and classifier is used called as Linear SVM
classifier.
2. Non-Linear SVM
• Is used for non-linearly separated data, which means if a dataset cannot
be classified by using a straight line, then such data is termed as non-
linear data and classifier used is called as Non-linear SVM classifier.
Linear Support Vector Machine
SVM is defined such that is defined in terms of the support vectors only, we don’t have to
worry about other obsevations since the margin is made uisng the points which are closest to
the hyperplane, whereas in logistic regression the classifier is defined over all the points.
Linear SVM
Linear Support Vector Machine
NOTE: Since we are plotting the data points in a2-dimensional graph we call this decision
boundary a straight line but if we have more dimensions, we call this decision boundary a
Hyperplane.
• SVM works relatively well when there is a clear margin of separation between
classes.
• SVM is more effective in high dimensional spaces.
• SVM is effective in cases where the number of dimensions is greater than the
number of samples.
• SVM is relatively memory efficient
Disadvantages of Support Vector Machine