© Jitesh Khurkhuriya – Azure ML Online Course
Classification
© Jitesh Khurkhuriya – Azure ML Online Course
Support Vector Machine
© Jitesh Khurkhuriya – Azure ML Online Course
What is SVM?
• Supervised Learning Algorithm
• Can be used for both Regression as well as Classification
• Mostly used for classification
• The observations are separated by a hyperplane in the space
© Jitesh Khurkhuriya – Azure ML Online Course
Vectors
X2
X1
© Jitesh Khurkhuriya – Azure ML Online Course
Vectors
X1
P1 (x1,x2,x3)
X2
X3
© Jitesh Khurkhuriya – Azure ML Online Course
Hyperplane
© Jitesh Khurkhuriya – Azure ML Online Course
Hyperplane
X2
X1
A hyperplane separates the two classes.
© Jitesh Khurkhuriya – Azure ML Online Course
Choosing a Hyperplane
X2
X1
Select a hyperplane that separates the two classes.
© Jitesh Khurkhuriya – Azure ML Online Course
Select the right hyperplane
A Hyperplanes
X2 C
B
Margin Support vectors
X1
Margin is maximum distance between the nearest data points and the hyperplane.
© Jitesh Khurkhuriya – Azure ML Online Course
What comes first?
A
X2
B
X1
Identifying the accurate classes comes first before margin calculation.
© Jitesh Khurkhuriya – Azure ML Online Course
Two-Class SVM using Azure ML
• Create Trainer Mode
• Single Parameter – accepts a specific set of values
• Parameter Range – Finds optimal parameter when used with Hyper Parameter Tuning
• Number of Iterations
• Lambda – Value to use for L1 Regularisation. Larger value penalises the model
• Normalize Features – Training data sets are centred at the mean and scaled to have one unit of
standard deviation
• Project to the unit sphere – to normalize the coefficients
• Random Number Seed – any integer value for reproducing the results
• Allow unknown category - Creates a group for unknown values in the training or validation sets.
© Jitesh Khurkhuriya – Azure ML Online Course
Thank You…!
© Jitesh Khurkhuriya – Azure ML Online Course