Question: Exercise 1 7 . 1 [ Fitting an SVM classifier by hand * ] ( Source: Jaakkola. ) Consider a dataset with 2 points in

Exercise 17.1[Fitting an SVM classifier by hand *]
(Source: Jaakkola.) Consider a dataset with 2 points in 1d: x1=0 with label y1=1 and x2=2 with
label y2=1. Consider mapping each point to 3d using the feature vector \phi (x)=[1,2x, x2]T .(This is Author: Kevin P. Murphy. (C) MIT Press. CC-BY-NC-ND license
600 Chapter 17. Kernel Methods * equivalent to using a second order polynomial kernel.) The max margin classifier has the form
min ||w||2 s.t. y1(wT \phi (x1)+ w0)>=1 y2(wT \phi (x2)+ w0)>=1
(17.119)(17.120)(17.121)
a. Write down a vector that is parallel to the optimal vector w. Hint: recall from Figure 17.12(a) that w is perpendicular to the decision boundary between the two points in the 3d feature space.
b. What is the value of the margin that is achieved by this w? Hint: recall that the margin is the distance from each support vector to the decision boundary. Hint 2: think about the geometry of 2 points in space, with a line separating one from the other.
c. Solve for w, using the fact that the margin is equal to 1/||w||.
d. Solve for w0 using your value for w and Equations 17.119 to 17.121. Hint: the points will be on the
decision boundary, so the inequalities will be tight.
e. Write down the form of the discriminant function f (x)= w0+ wT \phi (x) as an explicit function of x.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!