SlideShare a Scribd company logo
1 of 25
SUPPORT VECTOR MACHINE
1. INTRODUCTION
2. LINEARLY SEPERABLE CASE
3. EXTENSION TO THE SVM MODEL
4. APPLICATION OF SVM IN REAL WORLD
SUPPORT VECTOR MACHINE
• It is a supervised machine learning algorithm
that helps in both classification and regression
problem statements.It finds an optimal boundary
known as hyperplane between different classes.
• It is a vector-space-based machine-learning
method where the goal is to find a decision
boundary between two classes that is maximally
far from any point in the training data (possibly
discounting some points as outliers or noise).
LINEARLY SEPARABLE CASE
• If the training data is linearly separable, we can
select two parallel hyperplanes that separate
the two classes of data, so that the distance
between them is as large as possible.
• The region bounded by these two hyperplanes
is called the "margin", and the maximum-
margin hyperplane is the hyperplane that lies
halfway between them.
• With a normalized or standardized dataset, these
hyperplanes can be described by the equations:-
Case 1:- w ^T x -b=1 (anything on or above this
boundary is of one class, with label 1)
And
 Case 2:- w^T x -b=-1 (anything on or below this
boundary is of the other class, with label −1).
• The distance between these two hyperplanes
is 2|w|,so to maximize the distance between
the planes we want to minimize|w|.
• The distance is computed using the distance from a
point to a plane equation. We also have to prevent
data points from falling into the margin, we add the
following constraint: for each i either
w^Tx_i-b>= 1}, if y_i =1,
or
w^Tx_i-b<=-1}, if y_i=-1.
• These constraints state that each data point must lie
on the correct side of the margin. This can be
rewritten as:-
Y_i(w^Tx_i-b)>=1, for all 1<=i<=n.
• We can put this together to get the optimization
problem:
"Minimize |w| subject to y_i (w ^Tx _i-b) >=1 for
i=1,……..,n.”
• The w and b that solve this problem determine
our classifier,x→sgn (w ^Tx -b) where sgn(.) is
the sign function.
• An important consequence of this geometric
description is that the max-margin hyperplane is
completely determined by those ͢ x_i that lie
nearest to it. These x _i are called support
vectors.
EXTENSION TO THE SVM MODEL
 SOFT MARGIN CLASSIFICATION
MULTICLASS SUPPORT VECTOR MACHINE
NONLINEAR SUPPORT VECTOR MACHINE
SOFT MARGIN CLASSIFICATION
An additional set of coefficients are
introduced that give the margin wiggle room
in each dimension. These coefficients are
called slack variables.
 This increases the complexity of the model as
there are more parameters for the model to fit
to the data to provide this complexity.
A tuning parameter is introduced called simply
C that defines the magnitude of the wiggle
allowed across all dimensions.
Real data is messy and connot be separated
perfectly with a hyperplane.
 The constrains of maximizing the margin of the
line that separates the classes must be relaxed.
This is called as the soft margin classifier.
 This change allows some points in the training
data to violate the separating line.
The C parameters defines the amount of violation
of the margin allowed. A C=0 is no violation and
we are back to the inflexible Maximal-Margin
Classifier .
The larger the value of C the more violations of
the hyperplane are permitted.
During the learning of the hyperplane from data,
all training instances that lie within the distance
of the margin will affect the placement of the
hyperplane and are referred to as support
vectors.
C affects the number of instances that are
allowed to fall within the margin. C influences
the number of support vectors used by the
model.
• The smaller the value of C, the more sensitive the algorithm
is to the training data (higher variance and lower bias).
• The larger the value of C, the less sensitive the algorithm is
to the training data (lower variance and higher bias
MULTICLASS SUPPORT VECTOR
MACHINE
• SVM doesn’t support multiclass classification
natively. It supports binary classification and
separating data points into two classes.
• For multiclass classification, the same
principle is utilized after breaking down the
multi classification problem into multiple
binary classification problems.
• The popular methods which are used to
perform multi-classification on the problem
statements using SVM are as follows:
• One vs One (OVO) approach
• One vs All (OVA) approach
• Directed Acyclic Graph (DAG) approach
One vs One (OVO)
• This technique breaks down our multiclass
classification problem into subproblems which are
binary classification problems. So, after this strategy,
we get binary classifiers per each pair of classes. For
final prediction for any input use the concept
of majority voting along with the distance from the
margin as its confidence criterion.
• The major problem with this approach is that we
have to train too many SVMs.
• In the One-to-One approach, we try to find the
hyperplane that separates between every two
classes, neglecting the points of the third class
• For example, here Red-Blue line tries to
maximize the separation only between blue
and red points while It has nothing to do with
the green points.
One vs All (OVA)
• In this technique to predict the output for new
input, just predict with each of the build SVMs
and then find which one puts the prediction the
farthest into the positive region (behaves as a
confidence criterion for a particular SVM).
• In the One vs All approach, we try to find a
hyperplane to separate the classes. This means
the separation takes all points into account and
then divides them into two groups in which there
is a group for the one class points and the other
group for all other points.
• For example, here the Greenline tries to
maximize the gap between green points and
all other points at once.
• A single SVM does binary classification and
can differentiate between two classes. So
according to the two above approaches, to
classify the data points from L classes data set.
• In the One vs All approach, the classifier can
use L SVMs.
• In the One vs One approach, the classifier can
use L(L-1)/2 SVMs.
Directed Acyclic Graph (DAG)
• This approach is more hierarchical in nature
and it tries to addresses the problems of the
One vs One and One vs All approach.
• This is a graphical approach in which we
group the classes based on some logical
grouping.
NONLINEAR SUPPORT VECTOR
MACHINE
• When we cannot separate data with a straight
line we use Non – Linear SVM.
• for which, we have Kernel functions. They
transform non-linear spaces into linear spaces.
• It transforms data into another dimension so that
the data can be classified.
• It transforms two variables x and y into three
variables along with z. Therefore, the data have
plotted from 2-D space to 3-D space. So we can
easily classify the data by drawing the best
hyperplane between them.
KERNELS FUNCTIONS
• It is a Mathematical functions for transforming
data.
• It uses some linear algebra.
Example:
K(x, y) = <f(x), f(y)>
• Different SVM algorithms use different types
of kernel functions.
• Various kernels available are:-
1. Linear kernel
2. Non linear kernel
3. Radial basis function (RBF)
4. Sigmoid
5. Polynomial
6. Exponential
APPLICATION OF SVM IN REAL WORLD
Some common applications of SVM are-
• Face detection
• Text and hypertext categorization
• Classification of images
• Bioinformatics
• Protein fold and remote homology detection
• Handwriting recognition
• Generalized predictive control(GPC)

More Related Content

What's hot

Support vector machine
Support vector machineSupport vector machine
Support vector machineSomnathMore3
 
Feed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descentFeed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descentMuhammad Rasel
 
Activation functions
Activation functionsActivation functions
Activation functionsPRATEEK SAHU
 
Introduction to Machine Learning Classifiers
Introduction to Machine Learning ClassifiersIntroduction to Machine Learning Classifiers
Introduction to Machine Learning ClassifiersFunctional Imperative
 
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...Preferred Networks
 
Dimensionality Reduction
Dimensionality ReductionDimensionality Reduction
Dimensionality ReductionSaad Elbeleidy
 
Feature selection
Feature selectionFeature selection
Feature selectionDong Guo
 
The world of loss function
The world of loss functionThe world of loss function
The world of loss function홍배 김
 
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | EdurekaSVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | EdurekaEdureka!
 
Activation function
Activation functionActivation function
Activation functionAstha Jain
 
2.5 backpropagation
2.5 backpropagation2.5 backpropagation
2.5 backpropagationKrish_ver2
 
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...Edureka!
 
Optimization for Deep Learning
Optimization for Deep LearningOptimization for Deep Learning
Optimization for Deep LearningSebastian Ruder
 

What's hot (20)

Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
KNN
KNNKNN
KNN
 
Gradient descent method
Gradient descent methodGradient descent method
Gradient descent method
 
Feed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descentFeed forward ,back propagation,gradient descent
Feed forward ,back propagation,gradient descent
 
Activation functions
Activation functionsActivation functions
Activation functions
 
Recurrent Neural Network
Recurrent Neural NetworkRecurrent Neural Network
Recurrent Neural Network
 
Introduction to Machine Learning Classifiers
Introduction to Machine Learning ClassifiersIntroduction to Machine Learning Classifiers
Introduction to Machine Learning Classifiers
 
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
Introduction to Graph Neural Networks: Basics and Applications - Katsuhiko Is...
 
Support Vector Machines ( SVM )
Support Vector Machines ( SVM ) Support Vector Machines ( SVM )
Support Vector Machines ( SVM )
 
Dimensionality Reduction
Dimensionality ReductionDimensionality Reduction
Dimensionality Reduction
 
Neural network
Neural networkNeural network
Neural network
 
Support vector machine
Support vector machineSupport vector machine
Support vector machine
 
Feature selection
Feature selectionFeature selection
Feature selection
 
The world of loss function
The world of loss functionThe world of loss function
The world of loss function
 
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | EdurekaSVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
SVM Algorithm Explained | Support Vector Machine Tutorial Using R | Edureka
 
K - Nearest neighbor ( KNN )
K - Nearest neighbor  ( KNN )K - Nearest neighbor  ( KNN )
K - Nearest neighbor ( KNN )
 
Activation function
Activation functionActivation function
Activation function
 
2.5 backpropagation
2.5 backpropagation2.5 backpropagation
2.5 backpropagation
 
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
Decision Tree Algorithm & Analysis | Machine Learning Algorithm | Data Scienc...
 
Optimization for Deep Learning
Optimization for Deep LearningOptimization for Deep Learning
Optimization for Deep Learning
 

Similar to support vector machine 1.pptx

Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKSSupport Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKSrajalakshmi5921
 
classification algorithms in machine learning.pptx
classification algorithms in machine learning.pptxclassification algorithms in machine learning.pptx
classification algorithms in machine learning.pptxjasontseng19
 
Classification-Support Vector Machines.pptx
Classification-Support Vector Machines.pptxClassification-Support Vector Machines.pptx
Classification-Support Vector Machines.pptxCiceer Ghimirey
 
Support Vector Machine topic of machine learning.pptx
Support Vector Machine topic of machine learning.pptxSupport Vector Machine topic of machine learning.pptx
Support Vector Machine topic of machine learning.pptxCodingChamp1
 
Introduction to Support Vector Machines
Introduction to Support Vector MachinesIntroduction to Support Vector Machines
Introduction to Support Vector MachinesSilicon Mentor
 
sentiment analysis using support vector machine
sentiment analysis using support vector machinesentiment analysis using support vector machine
sentiment analysis using support vector machineShital Andhale
 
ML Softmax JP 24.pptx
ML Softmax JP 24.pptxML Softmax JP 24.pptx
ML Softmax JP 24.pptxJayesh Patil
 
Data Science - Part IX - Support Vector Machine
Data Science - Part IX -  Support Vector MachineData Science - Part IX -  Support Vector Machine
Data Science - Part IX - Support Vector MachineDerek Kane
 
OM-DS-Fall2022-Session10-Support vector machine.pdf
OM-DS-Fall2022-Session10-Support vector machine.pdfOM-DS-Fall2022-Session10-Support vector machine.pdf
OM-DS-Fall2022-Session10-Support vector machine.pdfssuserb016ab
 
Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learningAmAn Singh
 
properties, application and issues of support vector machine
properties, application and issues of support vector machineproperties, application and issues of support vector machine
properties, application and issues of support vector machineDr. Radhey Shyam
 
10_support_vector_machines (1).pptx
10_support_vector_machines (1).pptx10_support_vector_machines (1).pptx
10_support_vector_machines (1).pptxshyedshahriar
 

Similar to support vector machine 1.pptx (20)

Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKSSupport Vector Machines USING MACHINE LEARNING HOW IT WORKS
Support Vector Machines USING MACHINE LEARNING HOW IT WORKS
 
Module-3_SVM_Kernel_KNN.pptx
Module-3_SVM_Kernel_KNN.pptxModule-3_SVM_Kernel_KNN.pptx
Module-3_SVM_Kernel_KNN.pptx
 
classification algorithms in machine learning.pptx
classification algorithms in machine learning.pptxclassification algorithms in machine learning.pptx
classification algorithms in machine learning.pptx
 
Classification-Support Vector Machines.pptx
Classification-Support Vector Machines.pptxClassification-Support Vector Machines.pptx
Classification-Support Vector Machines.pptx
 
svm.pptx
svm.pptxsvm.pptx
svm.pptx
 
Support Vector Machine topic of machine learning.pptx
Support Vector Machine topic of machine learning.pptxSupport Vector Machine topic of machine learning.pptx
Support Vector Machine topic of machine learning.pptx
 
Introduction to Support Vector Machines
Introduction to Support Vector MachinesIntroduction to Support Vector Machines
Introduction to Support Vector Machines
 
Ai saturdays presentation
Ai saturdays presentationAi saturdays presentation
Ai saturdays presentation
 
sentiment analysis using support vector machine
sentiment analysis using support vector machinesentiment analysis using support vector machine
sentiment analysis using support vector machine
 
ML Softmax JP 24.pptx
ML Softmax JP 24.pptxML Softmax JP 24.pptx
ML Softmax JP 24.pptx
 
Support vector machines
Support vector machinesSupport vector machines
Support vector machines
 
Data Science - Part IX - Support Vector Machine
Data Science - Part IX -  Support Vector MachineData Science - Part IX -  Support Vector Machine
Data Science - Part IX - Support Vector Machine
 
OM-DS-Fall2022-Session10-Support vector machine.pdf
OM-DS-Fall2022-Session10-Support vector machine.pdfOM-DS-Fall2022-Session10-Support vector machine.pdf
OM-DS-Fall2022-Session10-Support vector machine.pdf
 
Support vector machine-SVM's
Support vector machine-SVM'sSupport vector machine-SVM's
Support vector machine-SVM's
 
SVM_notes.pdf
SVM_notes.pdfSVM_notes.pdf
SVM_notes.pdf
 
lec10svm.ppt
lec10svm.pptlec10svm.ppt
lec10svm.ppt
 
Supervised and unsupervised learning
Supervised and unsupervised learningSupervised and unsupervised learning
Supervised and unsupervised learning
 
properties, application and issues of support vector machine
properties, application and issues of support vector machineproperties, application and issues of support vector machine
properties, application and issues of support vector machine
 
10_support_vector_machines (1).pptx
10_support_vector_machines (1).pptx10_support_vector_machines (1).pptx
10_support_vector_machines (1).pptx
 
lec10svm.ppt
lec10svm.pptlec10svm.ppt
lec10svm.ppt
 

Recently uploaded

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfUjwalaBharambe
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 

Recently uploaded (20)

Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdfFraming an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
Framing an Appropriate Research Question 6b9b26d93da94caf993c038d9efcdedb.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 

support vector machine 1.pptx

  • 1. SUPPORT VECTOR MACHINE 1. INTRODUCTION 2. LINEARLY SEPERABLE CASE 3. EXTENSION TO THE SVM MODEL 4. APPLICATION OF SVM IN REAL WORLD
  • 2. SUPPORT VECTOR MACHINE • It is a supervised machine learning algorithm that helps in both classification and regression problem statements.It finds an optimal boundary known as hyperplane between different classes. • It is a vector-space-based machine-learning method where the goal is to find a decision boundary between two classes that is maximally far from any point in the training data (possibly discounting some points as outliers or noise).
  • 3. LINEARLY SEPARABLE CASE • If the training data is linearly separable, we can select two parallel hyperplanes that separate the two classes of data, so that the distance between them is as large as possible. • The region bounded by these two hyperplanes is called the "margin", and the maximum- margin hyperplane is the hyperplane that lies halfway between them.
  • 4.
  • 5. • With a normalized or standardized dataset, these hyperplanes can be described by the equations:- Case 1:- w ^T x -b=1 (anything on or above this boundary is of one class, with label 1) And  Case 2:- w^T x -b=-1 (anything on or below this boundary is of the other class, with label −1). • The distance between these two hyperplanes is 2|w|,so to maximize the distance between the planes we want to minimize|w|.
  • 6. • The distance is computed using the distance from a point to a plane equation. We also have to prevent data points from falling into the margin, we add the following constraint: for each i either w^Tx_i-b>= 1}, if y_i =1, or w^Tx_i-b<=-1}, if y_i=-1. • These constraints state that each data point must lie on the correct side of the margin. This can be rewritten as:- Y_i(w^Tx_i-b)>=1, for all 1<=i<=n.
  • 7. • We can put this together to get the optimization problem: "Minimize |w| subject to y_i (w ^Tx _i-b) >=1 for i=1,……..,n.” • The w and b that solve this problem determine our classifier,x→sgn (w ^Tx -b) where sgn(.) is the sign function. • An important consequence of this geometric description is that the max-margin hyperplane is completely determined by those ͢ x_i that lie nearest to it. These x _i are called support vectors.
  • 8.
  • 9. EXTENSION TO THE SVM MODEL  SOFT MARGIN CLASSIFICATION MULTICLASS SUPPORT VECTOR MACHINE NONLINEAR SUPPORT VECTOR MACHINE
  • 10. SOFT MARGIN CLASSIFICATION An additional set of coefficients are introduced that give the margin wiggle room in each dimension. These coefficients are called slack variables.  This increases the complexity of the model as there are more parameters for the model to fit to the data to provide this complexity. A tuning parameter is introduced called simply C that defines the magnitude of the wiggle allowed across all dimensions.
  • 11. Real data is messy and connot be separated perfectly with a hyperplane.  The constrains of maximizing the margin of the line that separates the classes must be relaxed. This is called as the soft margin classifier.  This change allows some points in the training data to violate the separating line. The C parameters defines the amount of violation of the margin allowed. A C=0 is no violation and we are back to the inflexible Maximal-Margin Classifier . The larger the value of C the more violations of the hyperplane are permitted.
  • 12. During the learning of the hyperplane from data, all training instances that lie within the distance of the margin will affect the placement of the hyperplane and are referred to as support vectors. C affects the number of instances that are allowed to fall within the margin. C influences the number of support vectors used by the model. • The smaller the value of C, the more sensitive the algorithm is to the training data (higher variance and lower bias). • The larger the value of C, the less sensitive the algorithm is to the training data (lower variance and higher bias
  • 13. MULTICLASS SUPPORT VECTOR MACHINE • SVM doesn’t support multiclass classification natively. It supports binary classification and separating data points into two classes. • For multiclass classification, the same principle is utilized after breaking down the multi classification problem into multiple binary classification problems.
  • 14. • The popular methods which are used to perform multi-classification on the problem statements using SVM are as follows: • One vs One (OVO) approach • One vs All (OVA) approach • Directed Acyclic Graph (DAG) approach
  • 15. One vs One (OVO) • This technique breaks down our multiclass classification problem into subproblems which are binary classification problems. So, after this strategy, we get binary classifiers per each pair of classes. For final prediction for any input use the concept of majority voting along with the distance from the margin as its confidence criterion. • The major problem with this approach is that we have to train too many SVMs. • In the One-to-One approach, we try to find the hyperplane that separates between every two classes, neglecting the points of the third class
  • 16. • For example, here Red-Blue line tries to maximize the separation only between blue and red points while It has nothing to do with the green points.
  • 17. One vs All (OVA) • In this technique to predict the output for new input, just predict with each of the build SVMs and then find which one puts the prediction the farthest into the positive region (behaves as a confidence criterion for a particular SVM). • In the One vs All approach, we try to find a hyperplane to separate the classes. This means the separation takes all points into account and then divides them into two groups in which there is a group for the one class points and the other group for all other points.
  • 18. • For example, here the Greenline tries to maximize the gap between green points and all other points at once.
  • 19. • A single SVM does binary classification and can differentiate between two classes. So according to the two above approaches, to classify the data points from L classes data set. • In the One vs All approach, the classifier can use L SVMs. • In the One vs One approach, the classifier can use L(L-1)/2 SVMs.
  • 20. Directed Acyclic Graph (DAG) • This approach is more hierarchical in nature and it tries to addresses the problems of the One vs One and One vs All approach. • This is a graphical approach in which we group the classes based on some logical grouping.
  • 21. NONLINEAR SUPPORT VECTOR MACHINE • When we cannot separate data with a straight line we use Non – Linear SVM. • for which, we have Kernel functions. They transform non-linear spaces into linear spaces. • It transforms data into another dimension so that the data can be classified. • It transforms two variables x and y into three variables along with z. Therefore, the data have plotted from 2-D space to 3-D space. So we can easily classify the data by drawing the best hyperplane between them.
  • 22.
  • 23. KERNELS FUNCTIONS • It is a Mathematical functions for transforming data. • It uses some linear algebra. Example: K(x, y) = <f(x), f(y)> • Different SVM algorithms use different types of kernel functions.
  • 24. • Various kernels available are:- 1. Linear kernel 2. Non linear kernel 3. Radial basis function (RBF) 4. Sigmoid 5. Polynomial 6. Exponential
  • 25. APPLICATION OF SVM IN REAL WORLD Some common applications of SVM are- • Face detection • Text and hypertext categorization • Classification of images • Bioinformatics • Protein fold and remote homology detection • Handwriting recognition • Generalized predictive control(GPC)