Lecture-9 Classification Using SVM
Lecture-9 Classification Using SVM
Machine (SVM)
Discussion
2
After
hardship,
there will be
ease. This is
Allah’s
promise. So
never lose
hope in
times of
hardships
and
calamities.
•A Quick Recap (Important Concepts)
•What is Support Vector Machine (SVM)
•How does SVM Work?
•SVM Kernels
•SVM Use Cases
•Advantages and Disadvantages
•Hands-on Implementation in Python
•SVM on Cancer Dataset
•SVM on IRIS flower Dataset
3
What is Machine Learning?
4
Applications of SVM:
5
What is Support Vector Machine:
6
A Quick Concept:
7
8
Why SVM?
9
Why SVM?
10
Why SVM?
SVM is a supervised learning method that looks at the data and sorts
it into one of the two categories
11
Why SVM?
12
What is SVM?
13
What is SVM?
14
15
What is SVM?
16
17
What is SVM?
18
What is SVM?
19
20
What is a hyperplane?
21
In technical terms we say distance b/w points and line should be
maximum
What is SVM?
22
If we select a hyperplane having low margin, then there is a high
chance of misclassification
What is SVM?
23
How do we find the right hyperplane?
24
25
26
Understanding Dimensions:
27
28
29
SVM Kernels:
30
Understanding Kernel
31
Understanding Kernel
32
Understanding Kernel
33
Understanding Kernel
34
Non-Separable Case
35
Non-Linear Decision Boundaries
36
37
•. Advantage/Disadvantages of SVM
● Advantages
● SVM works relatively well when there is clear margin of
separation between classes.
● SVM is more effective in high dimensional spaces.
● SVM is effective in cases where number of dimensions is
greater than the number of samples.
● SVM is relatively memory efficient
● Disadvantages
● SVM algorithm is not suitable for large data sets
● SVM does not perform very well, when the data set has more noise
i.e. target classes are overlapping.
● In cases where number of features for each data point exceeds the
number of training data sample , the SVM will under perform.
How to Implement SVM?
39
Thank you
Any Question?
40