Download as pdf or txt
Download as pdf or txt
You are on page 1of 17

Support Vector Machine

Dr. Muhammad Shoaib Farooq


What is Support Vector Machine?
SVM or Support Vector Machine is a linear model for classification and regression problems. It can
solve linear and non-linear problems and work well for many practical problems.
The idea of SVM is simple: The algorithm creates a line or a hyperplane which separates the data
into classes.
Support vector machines (SVMs) are a set of supervised learning methods used for classification,
regression and outliers detection.
Support Vector Separates Well these Points?
Support Vector Separates Well these Points?
Support Vector (Which Hyper Plane will be Selected?)
Support Vector Machine (Example)
Support Vector Machine (Example)
Plot + ve and –ve Data Points on Graph
Support Vector Machine (Example)
Identify nearest –ve and +ve DataPoints
Support Vector Machine (Example)
Label Three Points as S1, S2 and S3
Support Vector Machine (Example)
Label Three Points as S1, S2 and S3
Support Vector Machine (Example)
Augment 1 as biased input in each vector
Support Vector Machine (Example)
Equations for weight vector

S3

S2

S1
Support Vector Machine (Example)
Equations for weight vector
Support Vector Machine (Example)
Calculating Weight Vector
Support Vector Machine (Example)
Draw line parallel to Yaxis

You might also like