date: 2024-11-11
title: SVM
status: DONE
author:
  - AllenYGY
tags:
  - NOTE
  - SVM
  - MachineLearing
publish: TrueSVM
We can write the constraints as
When we construct the Lagrangian for our optimization problem, we have:
Let’s find the dual form of the problem.
We’ll do this by setting the derivatives of 
We have: 
Hyperplane:  
Constraint: 
Goal: 
Lagrangian:
Partial derivative: 
Solution: 
Lagrangian becomes: 
Weight vector: 
Bias: 
Hyperplane:  
Constraint:  
Goal:  
Lagrangian:  
Partial Derivative:  
Solution:  
Dual Problem: 
s.t. 
Weight vector:  
Bias:  
The reason that ξ disappears: The slack variables 
By taking the derivative of the Lagrangian with respect to 
Consequently, the slack variables 
Hyperplane:  
Constraint:  
Goal:  
Lagrangian (Dual):  
s.t.  
Weight vector:  
Decision Function:  
Bias: 
Kernel Functions:
Linear: 
Polynomial: 
Gaussian (RBF): 
Sigmoid: