9/14
Part 6 of 7 · The worked exampleLearn and do
A worked example: a distribution's minimum error, out loud
Here's the OpenAI question, worked out loud.
Use cross entropy to find a distribution's minimum error. The report is one line (1 source), so most of the work is pinning it down.
1. Pin down the words. Error is the cross entropy H(p, q) of a model q against data from p. Minimum is over every possible q. Say both before coding.
2. Answer, then show it. The minimum is the entropy H(p), at q = p, by Gibbs' inequality. Then check it in code: make q a softmax of logits z and run gradient descent.
What's the gradient of H(p, softmax(z)) with respect to the logits z?
Pick an answer above to see the rest
You have 1,000 labeled rows, not p itself. What's the lowest log loss a constant prediction reaches on them?
Pick an answer above to see the rest