Question: Programming Project 4 Due: 1 1 : 5 9 pm , Friday, Dec 6 th , 2 0 2 4 . Write the scripts for

Programming Project 4
Due: 11:59pm, Friday, Dec 6th,2024.
Write the scripts for the following problems in jupyter notebook and combine them with your answers as a single
PDF file. Note that failing to submit the PDF report (with code outputs) will result in a 0.5-point deduction.
(2^(pt)) For a data set {(x_(i),y_(i))}_(i)=1^(n) with x_(i)inR^(d) and y_(i)in{-1,+1}, consider the loss function L(w,b)=
\sum_(i=1)^n l_(i)(z_(i)) where l_(i)(z_(i))=((1-z_(i))^(2))/(2) and z_(i)=y_(i)*g(x_(i)). Here the linear classifier is defined by g(x)=w^(T)x+b.
Derive the gradient of L and then design a gradient descent algorithm that finds the linear classifier coefficients
w,b by minimizing the loss function L. Test your code on the iris data matrix of size 100\times 4y_(i)=-1 y_(i)=+1 w_(1),dots,w_(4) and b.
Programming Project 4 Due: 1 1 : 5 9 pm , Friday,

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!