Answered step by step
Verified Expert Solution
Question
1 Approved Answer
In Convex optimization, We are given a convex function f ( x ) with convex constraints h _ i ( x ) and g _
In Convex optimization, We are given a convex function fx with convex constraints hix and gjx Normally in convex functions we saw that in order to find the minimum value we need to take derivative wrt the variables and set it to have constraints we simply do that. min fx st: hix ; i p gjx ; j m So in order to solve for you need to follow the following steps: Step : apply Lagrangian function as primal objective function dual multipliers its primal constraints:
Lxbeta alpha fXipalpha i hixjmbeta j gjx; st : alpha i in ; beta j
Important note: if for all values of i and j hix and gjx then by maximizing the Lxbeta alpha we are minimizing the fx In the case of SVM the variables are Lw balpha Step : Solve for the variables using MLE. In class we mentioned to avoid the dimensional problem we will solve for w b first. after solving and finding the optimal values as:
wiNalpha i yi xi
and solving for b we found that inalpha i yithis is a finding that means is a dual constraint Step : Replace the derived variables into the original Lagrangian function
Lalpha w bij yi yjxiT xjalpha ialpha jialpha i
We call this dual function. Step : Write your dual function and its associated constraints:
max alpha ij yi yjxiT xjalpha ialpha jialpha i; st: inalpha i yii N; alpha ii N
Step : Solve for the dual variables alpha i using some methods like SMO. Step : Check for KKT conditions specially complementary slackness: Complementary slackness Dual variables Primal constraints depending on how many dual variables you have you will get multiple condition: for example if you have only alpha i then: In case of above example : alpha iyiwT xib So now you want to verify that for each constraints this equation always holds: A Case that alpha i then it means yiwT xib which means the points are on the margin B Case that yiwT xib then it means that alpha i which means yiwT xibpoints after the marg For your homework you need to write the above steps for Soft margin SVM
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started