Question: Consider a training set of data points and labels { ( x ( n ) , y ( n ) ) } n - 1

Consider a training set of data points and labels {(x(n),y(n))}n-14 where xinR and
yin{0,1} :
x(1)=-1,y(1)=0
x(2)=-2,y(2)=0
x(3)=2,y(3)=1
x(4)=1,y(4)=1
Now consider a linear classifier which consists of a linear model f(x)=wx+b and a
threshold function that outputs a class prediction hat(y) :
hat(y)={1iff(x)0.50iff(x)0.5
To learn the parameters of the linear model (w,b) we can minimise the mean squared
error loss (MSE) across our training data:
LMSE=14n=14(f(x(n))-y(n))2
(a) Plot the training data. Annotate this plot with the classifier's decision boundary
for initial parameters wt-0=1 and bt-0=1.
(b) Determine which side of the decision boundary is allocated to which class, thence
classify a test point at x(t)=-0.6.
(c) Derive an expression for delLMSBxdelw and delLMSExdelo and explain how these may be used
in gradient descent to update the classifier's parameters.
(d) Perform a single iteration of gradient descent using your expressions from (c) to
compute wl-1 and bl-1. Use a learning rate =0.1.
(c) Determine where the decision boundary is after this update, and reclassify the
test point at x(t)=0.6.
Consider a training set of data points and labels

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 Programming Questions!