A food-delivery app predicts how late each order will be. Its model sorts the order into one of three delay classes, then reports the expected delay: each class's delay weighted by its probability.
| class | delay |
|---|---|
| on time | 0 min |
| a bit late | 10 min |
| very late | 40 min |
The final layer emits three logits, softmax turns them into probabilities, and the expected delay is computed from those:
For one order the logits are
The backward pass needs the gradient of with respect to every logit. Find one of them: the rate of change of the expected delay with respect to the "a bit late" logit,
at these logits, in minutes per unit of logit.
Give your answer rounded to 3 decimal places, including its sign. Carry at least four decimals through the probabilities.