Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 Logistic Regression We learned about the binary logistic regression in the lecture this week. However, in practice, there could be more than two categories.

image text in transcribed
2 Logistic Regression We learned about the binary logistic regression in the lecture this week. However, in practice, there could be more than two categories. Multinomial logistic regression is the multi-class extension of the binary logistic regression. Suppose we have a classification dataset of N data points {(xi, yi)) , where x; E Rd and yi E {1, 2, . .., K} for i = 1, 2, ..., N. Here K 2 2 is the total number of classes. Multinomial logistic regression models the probability of x being class k using the softmax function, P(y = k | x; 0) = ; exp(0 k x) K , exp(0] x) where 0; E Rd is the parameter for the d-th class. (a) Show the negative log likelihood loss for multinomial logistic regression has the following form. N e(0) = -C(0 | {(x, 3)}) = - EZ lly = k] log exp(0 k Xi) i=1 k=1 21=1 exp(0] xi) Here 1 [yi = k] = 1 if and only if yi = k, otherwise 1 [y; = k] = 0. (b) Show that the gradient of ((0) with respect to O has the following form. al(0) 0 c xi(1 [yi = c] - exp(0_ xi) i= 1 EK, exp ( 0 ,*;)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

From Fourier Analysis To Wavelets

Authors: Jonas Gomes, Luiz Velho

1st Edition

3319220756, 9783319220758

More Books

Students also viewed these Mathematics questions

Question

Why is the demand curve for capital downward sloping?

Answered: 1 week ago

Question

Describe sources of ethical guidance.

Answered: 1 week ago