Question: Q 1 . [ 5 points ] The optimization problem of training logistic regression for the binary classification problem, i . e . , Y
Q points The optimization problem of training logistic regression for the binary classification problem, ie uses the crossentropy CE loss which is defined as
hat
where hat
One may believe that we could have used mean squared error MSE as the loss function instead of the loss. In this case, the optimization problem for the logistic regression can be described as
hat
Here, hat
The goal of this exercise is to compare the CE loss and the MSE loss when training a logistic regression model and to understand why we should use the CE over the MSE.
a points Compute the first order and the second order derivatives of
b points Compute the first order and the second order derivatives of
c point Using the seconder order derivatives, which are computed in a and b explain why we should prefer the crossentropy loss over the MSE loss for training a logistic regression model. Hint Use the second derivative and check the convexity.
d point Given the gradients computed in a derive the GD algorithm for optimization problems in equations
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
