[SOLVED] CMPUT466- Assignment 7

20.99 $

Programming resource
Digital learning resource
Category:
βœ“ Practical programming resource
βœ“ Suitable for guided study and reference
βœ“ Tutor guidance available when needed

Description

Rate this product

Problem 1.

Derive the gradient in softmax regression βˆ‚π‘€βˆ‚π½π‘˜,𝑖 , βˆ‚βˆ‚π‘π½π‘˜

Problem 2.

Read the section β€œLogistic regression vs. softmax” in the lecture note. It shows that a two-way softmax can be reduced to logistic regression.

Please show that logistic regression can also be reduced to 2-way softmax, i.e., for any parameter of the logistic regression model, there exists some parameter of the softmax regression model that does the same thing.

Problem 3.

Consider a -way classification. The predicted probability of a sample of . Incorrect predictions do not have utilities or losses.π‘˜ π‘’π‘˜

isΒ  Suppose correctly predicting a sample of categoryy ∈ ℝ𝐾, whereπ‘˜ π‘¦π‘˜ is the predicted probability of the π‘˜leads to a utilityth category.

Give the decision rule, i.e., a mapping from y to 𝑑^, that maximizes the total expected utility.

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.