SlideShare a Scribd company logo
SVM, A Machine Learning
Algorithm
Friendly Introduction to Machine Learning
Learn from experience Learn from data Follow Instructions
What is Machine Learning?
Machine Learning is the science of getting computers to act without being
explicitly programmed.
Computer
Data
Program
Output
Computer
Data
Output
Program
Traditional Programming:
Machine Learning:
Why is it trending now?
 Availability of many different kinds of data.
 Greater computational power.
 Exponential decrease in the price of powerful computing
resources.
 Train computers to do things that are very difficult to
program.
Machine Learning Methods
ML Methods
Supervised
Learning
Unsupervised
Learning
ClassificationRegression Clustering Association
Supervised Learning : Regression
Bedrooms Sq. feet Neighbourhood Rent
2 2000 K.R.Puram 25000
3 2000 Banashankari 20000
1 850 K.R.Puram 15000
3 2500 K.R.Puram 35000
4 3000 Whitefield 40000
2 1500 K.R.Puram ?
Supervised Learning : Classification
Sepal Length Sepal Width Petal Length Petal Width Class
5.1 3.5 1.4 0.2 Iris - Setosa
4.9 3.0 1.4 0.2 Iris - Setosa
7.0 3.2 4.7 1.4 Iris - Versicolor
6.4 3.2 4.5 1.5 Iris - Versicolor
6.4 3.2 5.3 2.3 Iris - Verginica
7.9 3.8 6.4 2.0 Iris - Verginica
Unsupervised Learning
Bedrooms Sq. feet Neighbourhood
2 2000 K.R.Puram
3 2000 Banashankari
1 850 K.R.Puram
3 2500 K.R.Puram
4 3000 Whitefield
Data
Training Data
Machine Learning
Algorithm
ClassifierTest Data Prediction
Support Vector Machine
 Vladimir Vapnik laid most of the groundwork for SVM
while working on his PhD thesis in the Soviet Union in
1960s.
 A supervised Machine Learning algorithm
 Used for both classification and regression
 It’s a binary classifier
Support Vector Machine
.
SVM is a classifier method that performs classification tasks by constructing
hyperplanes.
Identifying the right hyperplane?
Identifying the right Hyperplane?
Margin
Maximum perpendicular distance between the nearest data point and hyperplane -
Margin
How to compute MARGIN?
 Consider w perpendicular to median.
 Consider u, which we would like to classify.
 Decision rule:
w • u ≥ c ⇒ u is +, or
w • u + b ≥ 0 ⇒ u is +,
where c= -b.
 w • x++ b ≥ 1 (+ve sample)
w • x-+ b ≤ −1 (-ve sample)
 Introduce yi = 1 for + data and yi = -1 for -
data.
yi(x • w + b) ≥ 1, or
yi(x • w + b) − 1 ≥ 0,
 Margin =
How to compute MARGIN?
Maximizing the MARGIN
 Margin = 2||w||-1
 maximizing 2||w||-1 = maximizing ||w||-1
= minimizing ||w||
= minimizing
 Using Lagrange multipliers
 Using Lagrange multipliers
 w • x++ b ≥ 1 (+ve sample)
w • x-+ b ≤ −1 (-ve sample)
 Decision Rule:
Support Vector Machine and Implementation using Weka
Types of Data: Linearly Separable
Non - Linearly Separable Data
Support Vector Machine and Implementation using Weka
What if the data is not linearly separable?
Idea : Separable in higher dimension
X
Y
Z=X2 +Y2
X
Z
Y
Where does SVM get its name?
 Separating plane is usually determined by only a handful
of data points.
 The points that help determine the hyperplane are called
Support Vectors.
 The hyperplane itself is a classifying machine.
WEKA: A Machine
Learning tool
 Waikato Environment for Knowledge
Analysis
 Open source software tool
 Developed at The University of
Waikato
 Collection of visualization tools and
algorithms
Support Vector Machine and Implementation using Weka
Support Vector Machine and Implementation using Weka
Support Vector Machine and Implementation using Weka
Support Vector Machine and Implementation using Weka
IRIS Dataset
Attributes:
1. Sepal Length
2. Sepal Width
3. Petal Length
4. Petal Width
IRIS Flowers
Support Vector Machine and Implementation using Weka
Implementation of SVM in WEKA
Support Vector Machine and Implementation using Weka
References:
 https://www.youtube.com/watch?v=IpGxLWOIZy4
 https://weka.waikato.ac.nz/dataminingwithweka
 https://www.analyticsvidhya.com
 https://medium.com/@ageitgey
 https://www.youtube.com/watch?v=_PwhiWxHK8o&t=99s
 http://www.svm-tutorial.com
 https://www.youtube.com/watch?v=ZDfVal_4HMA
 http://www.eric-kim.net/eric-kim-net/posts/1/kernel_trick.html
 http://www4.stat.ncsu.edu/~post/todd/SVMslides.pdf

More Related Content

What's hot (20)

PDF
Naive Bayes
CloudxLab
 
PPTX
Ensemble methods in machine learning
SANTHOSH RAJA M G
 
PPTX
Evolutionary Algorithms
Reem Alattas
 
PPTX
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Simplilearn
 
PDF
Bayesian networks
Massimiliano Patacchiola
 
PPTX
Tutorial on Object Detection (Faster R-CNN)
Hwa Pyung Kim
 
PDF
Introduction to XGBoost
Joonyoung Yi
 
PPTX
Convolution Neural Network (CNN)
Suraj Aavula
 
PDF
Training Neural Networks
Databricks
 
PDF
Support Vector Machines ( SVM )
Mohammad Junaid Khan
 
PPTX
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Simplilearn
 
PDF
Single Image Super Resolution Overview
LEE HOSEONG
 
PPTX
Support vector machine
Musa Hawamdah
 
PPTX
Introduction to Deep Learning
Oswald Campesato
 
PPTX
Random forest
Musa Hawamdah
 
PPT
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
PDF
Faster R-CNN - PR012
Jinwon Lee
 
PDF
Variational Autoencoder
Mark Chang
 
PDF
Feature selection
Dong Guo
 
Naive Bayes
CloudxLab
 
Ensemble methods in machine learning
SANTHOSH RAJA M G
 
Evolutionary Algorithms
Reem Alattas
 
Recurrent Neural Network (RNN) | RNN LSTM Tutorial | Deep Learning Course | S...
Simplilearn
 
Bayesian networks
Massimiliano Patacchiola
 
Tutorial on Object Detection (Faster R-CNN)
Hwa Pyung Kim
 
Introduction to XGBoost
Joonyoung Yi
 
Convolution Neural Network (CNN)
Suraj Aavula
 
Training Neural Networks
Databricks
 
Support Vector Machines ( SVM )
Mohammad Junaid Khan
 
Logistic Regression | Logistic Regression In Python | Machine Learning Algori...
Simplilearn
 
Single Image Super Resolution Overview
LEE HOSEONG
 
Support vector machine
Musa Hawamdah
 
Introduction to Deep Learning
Oswald Campesato
 
Random forest
Musa Hawamdah
 
Heuristic Search Techniques Unit -II.ppt
karthikaparthasarath
 
Faster R-CNN - PR012
Jinwon Lee
 
Variational Autoencoder
Mark Chang
 
Feature selection
Dong Guo
 

Similar to Support Vector Machine and Implementation using Weka (20)

PDF
[ML]-SVM2.ppt.pdf
4NM20IS025BHUSHANNAY
 
PPT
Support Vector Machines
nextlib
 
PPTX
Classification-Support Vector Machines.pptx
Ciceer Ghimirey
 
PPTX
Tariku Bokila SVMA Presentation.pptx ddd
TarikuBokila1
 
PPTX
SVM[Support vector Machine] Machine learning
aawezix
 
PPT
2.6 support vector machines and associative classifiers revised
Krish_ver2
 
PPTX
Statistical Machine Learning unit4 lecture notes
SureshK256753
 
PPTX
SVM_and_Kernels_presentation_with_code.pptx
RushikeshKadam60
 
PDF
Computational decision making
Boris Adryan
 
PPTX
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
rajalakshmi5921
 
PPTX
Support vector machine
Rishabh Gupta
 
PDF
SVM(support vector Machine)withExplanation.pdf
ansarinazish958
 
PPTX
SOFT COMPUTING TECHNIQUES AND APPLICATIONS
SoumitraGhorai2
 
PPTX
Support vector machine-SVM's
Anudeep Chowdary Kamepalli
 
PPTX
Support vector machines
manaswinimysore
 
PPT
Introduction to Support Vector Machine 221 CMU.ppt
MuhammadImtiazHossai
 
PPTX
Support-Vector-Machine (Supervised Learning).pptx
engrfarhanhanif
 
PPTX
Support Vector Machine.pptx
HarishNayak44
 
PPTX
UE19EC353 ML Unit4_slides.pptx
premkumar901866
 
[ML]-SVM2.ppt.pdf
4NM20IS025BHUSHANNAY
 
Support Vector Machines
nextlib
 
Classification-Support Vector Machines.pptx
Ciceer Ghimirey
 
Tariku Bokila SVMA Presentation.pptx ddd
TarikuBokila1
 
SVM[Support vector Machine] Machine learning
aawezix
 
2.6 support vector machines and associative classifiers revised
Krish_ver2
 
Statistical Machine Learning unit4 lecture notes
SureshK256753
 
SVM_and_Kernels_presentation_with_code.pptx
RushikeshKadam60
 
Computational decision making
Boris Adryan
 
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
rajalakshmi5921
 
Support vector machine
Rishabh Gupta
 
SVM(support vector Machine)withExplanation.pdf
ansarinazish958
 
SOFT COMPUTING TECHNIQUES AND APPLICATIONS
SoumitraGhorai2
 
Support vector machine-SVM's
Anudeep Chowdary Kamepalli
 
Support vector machines
manaswinimysore
 
Introduction to Support Vector Machine 221 CMU.ppt
MuhammadImtiazHossai
 
Support-Vector-Machine (Supervised Learning).pptx
engrfarhanhanif
 
Support Vector Machine.pptx
HarishNayak44
 
UE19EC353 ML Unit4_slides.pptx
premkumar901866
 
Ad

Recently uploaded (20)

PDF
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
PDF
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
PPTX
Computer network Computer network Computer network Computer network
Shrikant317689
 
PPTX
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
PDF
Artificial Neural Network-Types,Perceptron,Problems
Sharmila Chidaravalli
 
PDF
June 2025 - Top 10 Read Articles in Network Security and Its Applications
IJNSA Journal
 
PDF
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
PDF
William Stallings - Foundations of Modern Networking_ SDN, NFV, QoE, IoT, and...
lavanya896395
 
PPTX
Unit_I Functional Units, Instruction Sets.pptx
logaprakash9
 
PPTX
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
PPTX
Explore USA’s Best Structural And Non Structural Steel Detailing
Silicon Engineering Consultants LLC
 
PPTX
darshai cross section and river section analysis
muk7971
 
PDF
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
PDF
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
PDF
13th International Conference on Artificial Intelligence, Soft Computing (AIS...
ijait
 
PPTX
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
PPT
FINAL plumbing code for board exam passer
MattKristopherDiaz
 
PDF
CLIP_Internals_and_Architecture.pdf sdvsdv sdv
JoseLuisCahuanaRamos3
 
PDF
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
PDF
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
bs-en-12390-3 testing hardened concrete.pdf
ADVANCEDCONSTRUCTION
 
Clustering Algorithms - Kmeans,Min ALgorithm
Sharmila Chidaravalli
 
Computer network Computer network Computer network Computer network
Shrikant317689
 
Comparison of Flexible and Rigid Pavements in Bangladesh
Arifur Rahman
 
Artificial Neural Network-Types,Perceptron,Problems
Sharmila Chidaravalli
 
June 2025 - Top 10 Read Articles in Network Security and Its Applications
IJNSA Journal
 
June 2025 Top 10 Sites -Electrical and Electronics Engineering: An Internatio...
elelijjournal653
 
William Stallings - Foundations of Modern Networking_ SDN, NFV, QoE, IoT, and...
lavanya896395
 
Unit_I Functional Units, Instruction Sets.pptx
logaprakash9
 
Engineering Quiz ShowEngineering Quiz Show
CalvinLabial
 
Explore USA’s Best Structural And Non Structural Steel Detailing
Silicon Engineering Consultants LLC
 
darshai cross section and river section analysis
muk7971
 
MODULE-5 notes [BCG402-CG&V] PART-B.pdf
Alvas Institute of Engineering and technology, Moodabidri
 
Module - 5 Machine Learning-22ISE62.pdf
Dr. Shivashankar
 
13th International Conference on Artificial Intelligence, Soft Computing (AIS...
ijait
 
Stability of IBR Dominated Grids - IEEE PEDG 2025 - short.pptx
ssuser307730
 
FINAL plumbing code for board exam passer
MattKristopherDiaz
 
CLIP_Internals_and_Architecture.pdf sdvsdv sdv
JoseLuisCahuanaRamos3
 
Bayesian Learning - Naive Bayes Algorithm
Sharmila Chidaravalli
 
NFPA 10 - Estandar para extintores de incendios portatiles (ed.22 ENG).pdf
Oscar Orozco
 
Ad

Support Vector Machine and Implementation using Weka

  • 1. SVM, A Machine Learning Algorithm
  • 2. Friendly Introduction to Machine Learning Learn from experience Learn from data Follow Instructions
  • 3. What is Machine Learning? Machine Learning is the science of getting computers to act without being explicitly programmed. Computer Data Program Output Computer Data Output Program Traditional Programming: Machine Learning:
  • 4. Why is it trending now?  Availability of many different kinds of data.  Greater computational power.  Exponential decrease in the price of powerful computing resources.  Train computers to do things that are very difficult to program.
  • 5. Machine Learning Methods ML Methods Supervised Learning Unsupervised Learning ClassificationRegression Clustering Association
  • 6. Supervised Learning : Regression Bedrooms Sq. feet Neighbourhood Rent 2 2000 K.R.Puram 25000 3 2000 Banashankari 20000 1 850 K.R.Puram 15000 3 2500 K.R.Puram 35000 4 3000 Whitefield 40000 2 1500 K.R.Puram ?
  • 7. Supervised Learning : Classification Sepal Length Sepal Width Petal Length Petal Width Class 5.1 3.5 1.4 0.2 Iris - Setosa 4.9 3.0 1.4 0.2 Iris - Setosa 7.0 3.2 4.7 1.4 Iris - Versicolor 6.4 3.2 4.5 1.5 Iris - Versicolor 6.4 3.2 5.3 2.3 Iris - Verginica 7.9 3.8 6.4 2.0 Iris - Verginica
  • 8. Unsupervised Learning Bedrooms Sq. feet Neighbourhood 2 2000 K.R.Puram 3 2000 Banashankari 1 850 K.R.Puram 3 2500 K.R.Puram 4 3000 Whitefield
  • 11. Support Vector Machine  Vladimir Vapnik laid most of the groundwork for SVM while working on his PhD thesis in the Soviet Union in 1960s.  A supervised Machine Learning algorithm  Used for both classification and regression  It’s a binary classifier
  • 12. Support Vector Machine . SVM is a classifier method that performs classification tasks by constructing hyperplanes.
  • 13. Identifying the right hyperplane?
  • 14. Identifying the right Hyperplane? Margin Maximum perpendicular distance between the nearest data point and hyperplane - Margin
  • 15. How to compute MARGIN?  Consider w perpendicular to median.  Consider u, which we would like to classify.  Decision rule: w • u ≥ c ⇒ u is +, or w • u + b ≥ 0 ⇒ u is +, where c= -b.  w • x++ b ≥ 1 (+ve sample) w • x-+ b ≤ −1 (-ve sample)
  • 16.  Introduce yi = 1 for + data and yi = -1 for - data. yi(x • w + b) ≥ 1, or yi(x • w + b) − 1 ≥ 0,  Margin = How to compute MARGIN?
  • 17. Maximizing the MARGIN  Margin = 2||w||-1  maximizing 2||w||-1 = maximizing ||w||-1 = minimizing ||w|| = minimizing  Using Lagrange multipliers
  • 18.  Using Lagrange multipliers
  • 19.  w • x++ b ≥ 1 (+ve sample) w • x-+ b ≤ −1 (-ve sample)  Decision Rule:
  • 21. Types of Data: Linearly Separable
  • 22. Non - Linearly Separable Data
  • 24. What if the data is not linearly separable? Idea : Separable in higher dimension X Y Z=X2 +Y2 X Z Y
  • 25. Where does SVM get its name?  Separating plane is usually determined by only a handful of data points.  The points that help determine the hyperplane are called Support Vectors.  The hyperplane itself is a classifying machine.
  • 26. WEKA: A Machine Learning tool  Waikato Environment for Knowledge Analysis  Open source software tool  Developed at The University of Waikato  Collection of visualization tools and algorithms
  • 31. IRIS Dataset Attributes: 1. Sepal Length 2. Sepal Width 3. Petal Length 4. Petal Width
  • 36. References:  https://www.youtube.com/watch?v=IpGxLWOIZy4  https://weka.waikato.ac.nz/dataminingwithweka  https://www.analyticsvidhya.com  https://medium.com/@ageitgey  https://www.youtube.com/watch?v=_PwhiWxHK8o&t=99s  http://www.svm-tutorial.com  https://www.youtube.com/watch?v=ZDfVal_4HMA  http://www.eric-kim.net/eric-kim-net/posts/1/kernel_trick.html  http://www4.stat.ncsu.edu/~post/todd/SVMslides.pdf