Answered step by step
Verified Expert Solution
Question
1 Approved Answer
4 . This question is on softmax Softmax is briefly described in Jurafsky and Martin, chapter 7 , section 7 . 5 . 1 .
This question is on softmax Softmax is briefly described in Jurafsky and Martin, chapter section This whole chapter is a good brief introduction to feedforward neural networks.
a Calculate the probabilities for the following sets of inputs to softmaxthe inputs to softmax are generally called logits:
b If the logits are yyy are the softmax probabilities the same for y cy cy c for any value c Give an argument justifying your answer.
c What would the softmax output be for logits that are inf,inf where inf is the python expression for minus infinity? Hint: you dont need to do any calculation! Remark: inf is actually used as an input to softmax in the GPT attention mechanism.
d Suppose the predicted probabilities of three possible outcomes A Band C are respectively. What is the logloss cross entropy loss if the true outcome ie the label in the training set is A What is it if the true label is B and if it is C
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started