Question: Please derive the gradient of the loss function in logistic regression (i.e., the logistic loss as shown in below) with respect to w, which
Please derive the gradient of the loss function in logistic regression (i.e., the logistic loss as shown in below) with respect to w, which is a vector and the model parameter. N L(w) = log(1 + exp (x/w)) yx{w i=1 where (x, y) represents the i-th example, x being data vector for input variables and yi being the label. N is the total number of examples in the data.
Step by Step Solution
3.48 Rating (164 Votes )
There are 3 Steps involved in it
The gradient of the loss function with respect to w can be written as Lw N i1 1 1 expxi w yi xi w2 w... View full answer
Get step-by-step solutions from verified subject matter experts
