Support Vector Machines
Support Vector Machines
Machines
Alternative view of logistic regression
If , we want ,
If , we want ,
Alternative view of logistic regression
Cost of example:
If (want ): If (want ):
Close approximation :
Gives SVM computational
advantage
Support vector machine
Logistic regression:
Hypothesis:
Support Vector Machine
-1 1 -1 1
Whenever :
Optimization objective
Of SVM
-1 1
Whenever :
-1 1
SVM Decision Boundary: Linearly separable case
x2
x1
LMC disadvantage x2
x1
Non-linear Decision Boundary
x2
x1
x1
Kernels and Similarity
f1 will be maximum i.e. 1,
when x1 = 3 and x2 = 5
Example:
For points near l(1), l(2) (since theta1 = theta2 = 1),
We Predict y = 1 otherwise we predict y = 0
x2
x1