Question: Exercise 1 7 . 1 [ Fitting an SVM classifier by hand * ] ( Source: Jaakkola. ) Consider a dataset with 2 points in
Exercise Fitting an SVM classifier by hand
Source: Jaakkola. Consider a dataset with points in d: x with label y and x with
label y Consider mapping each point to d using the feature vector phi xx xT This is Author: Kevin P Murphy. C MIT Press. CCBYNCND license
Chapter Kernel Methods equivalent to using a second order polynomial kernel. The max margin classifier has the form
min w st ywT phi x w ywT phi x w
a Write down a vector that is parallel to the optimal vector w Hint: recall from Figure a that w is perpendicular to the decision boundary between the two points in the d 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 : think about the geometry of points in space, with a line separating one from the other.
c Solve for w using the fact that the margin is equal to w
d Solve for w using your value for w and Equations to 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 w 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
