Support Vector Machine
Support Vector Machine
denotes +1
denotes -1
Support Vectors
are those
datapoints that
the margin
pushes up
against
Selecting the SVM Hyperplanes
Linearly Separable:
• Select two parallel
hyperplanes that separate
the two classes of data, so
that distance between both
the lines is maximum.
• The region b/w these two
hyper planes is known as
“margin”
• Maximum margin
hyperplane is the one that
lies in the middle of them.
Linear SVM
• We are given a training dataset of n points of the form(x1,y1)……(xn,
yn)
– Where yi denotes classes
xi denotes features.
– yi are either 1 or −1, each indicating the class to which the point xi belongs.
Each p is a p dimensional real vector.
• We want to find the "maximum-margin hyperplane" that divides
the group of points xi for which yi=1 from the group of points for
which yi=-1 which is defined so that the distance between the
hyperplane and the nearest point xi from either group is maximized.
• Any hyperplane can be written as the set of points x satisfying
w.x-b=0
Linear SVM [cont’d]
• As we also have to prevent data points from
falling into the margin, we add the following
constraint: for each i either