[Solved] ECE523 Homework 3

$25

File Name: ECE523_Homework_3.zip
File Size: 160.14 KB

SKU: [Solved] ECE523 Homework 3 Category: Tag:
5/5 - (1 vote)
  • The `2 Support Vector Machine

In class, we discussed that if our data is not linearly separable, then we need to modify our optimization problem to include slack variables. The formulation that was used is known as the `1-norm soft margin SVM. Now consider the formulation of the `2-norm soft margin SVM, which squares the slack variables within the sum. Notice that non-negativity of the slack variables has been removed.

arg min w

s.t. yi(wT xi + b) 1 i i [n]

Derive the dual form expression along with any constraints. Work must be shown. Hints: Refer to the methodology that was used in class to derive the dual form. The solution is given by:

n n n n

argmax

i=1 i=1 j=1 i=1

s.t. i 0 i [n] and

  • Domain Adaptation Support Vector Machines

We now look at a different type of SVM that is designed for domain adaptation and optimizes the hyperplanes given by wS (source hyperplane) before optimizing wT (target hyperplane). The process begins by training a support vector machine on source data then once data from the target are available, train a new SVM using the hyperplane from the first SVM and the data from the target to solve for a new domain adaptation SVM.

The primal optimization problem is given by arg min

wT, 2 i=1

s.t. yi(wTT xi + b) 1 i i {1,,n} i 0 i {1,,n}

where wS is hyperplane trained on the source data (assumed to be known), wT is hyperplane for the target, yi {1} is the label for instance xi, C & B are regularization parameters defined by the user and i is a slack variable for instance xi. The problem becomes finding a hyperplane, wT , that minimizes the above objective function subject to the constraints. Solve/derive the dual optimization problem.

Note: I will give the class the solution to this problem prior to the due date because Problem #3 requires that you implement this algorithm in code.

  • Density Estimation (Code)

Implement the domain adaptation SVM from Problem #2. A data setfor the source and target domains (both training and testing) have been uploaded to D2L. There are several ways to implement this algorithm. If I were doing this for an assignment, I would implement the SVM (both the domain adaptation SVM and normal SVM) directly using quadratic programming. You do not need to build the classifier (i.e., solve for the bias term); however, you will need to find wT and wS. To find the weight vectors, you will need to solve a quadratic programming problem and look through the documentation to learn how to solve this optiization task. The following Python packages are recommended:

Note: Your solution can use any of the packages above.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] ECE523 Homework 3[Solved] ECE523 Homework 3
$25