Answered step by step
Verified Expert Solution
Link Copied!

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 f(x) with convex constraints h_i(x) and g_j(x). 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 0. have constraints we simply do that. min f(x) s.t: h_i(x)=0 ; i=1,..., p g_j(x)<=0 ; j=1,..., m So in order to solve for you need to follow the following steps: - Step 1: apply Lagrangian function as primal objective function + dual multipliers * its primal constraints:
[ L(x,\beta ,\alpha )=f(X)+_i^p\alpha _i h_i(x)+_j^m\beta _j g_j(x); s.t : \alpha _i in ; \beta _j>=0]
Important note: if for all values of i and j h_i(x)=0 and g_j(x)<=0 then by maximizing the L(x,\beta ,\alpha ) we are minimizing the f(x) In the case of SVM the variables are L(w, b,\alpha )- Step 2: 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:
w^*=_i=1^N\alpha _i y_i x_i
and solving for b we found that _i=1^n\alpha _i y_i=0(this is a finding that means is a dual constraint)- Step 3: Replace the derived variables into the original Lagrangian function
L(\alpha , w^*, b^*)=-1/2_i_j y_i y_j(x_i^T x_j)\alpha _i\alpha _j+_i\alpha _i
We call this dual function. - Step 4: Write your dual function and its associated constraints:
[ max _\alpha -1/2_i_j y_i y_j(x_i^T x_j)\alpha _i\alpha _j+_i\alpha _i; s.t: _i=1^n\alpha _i y_i=0_i=1,..., N; \alpha _i>=0_i=1,..., N ]
- Step 5: Solve for the dual variables \alpha _i using some methods like SMO. - Step 6: Check for KKT conditions specially complementary slackness: Complementary slackness = Dual variables * Primal constraints =0 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 _i(1-y_i(w^T x_i+b))=0 So now you want to verify that for each constraints this equation always holds: A. Case that \alpha _i>0 then it means y_i(w^T x_i+b)=1 which means the points are on the margin B. Case that 1-y_i(w^T x_i+b)>0 then it means that \alpha _i=0 which means y_i(w^T x_i+b)>1(points 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The ABCs Of Property Management

Authors: Ken McElroy

1st Edition

9781937832537

More Books

Students also viewed these General Management questions