Five Losses, No Probabilities

Loss FunctionsMedium+20 XP+20

Five Losses, No Probabilities

Two models on a team's dashboard log only their per-example loss. The probabilities behind each loss are thrown away.

  • A spam filter reports one number, the probability that an email is spam; not spam gets whatever is left. It is trained with binary cross-entropy.
  • An animal classifier gives a probability to each of four animals (cat, dog, bird, fish) through softmax, and is trained with categorical cross-entropy.

For both models, the loss on one example is

loss=−ln⁡p\text{loss} = -\ln ploss=−lnp

where ppp is the probability the model gave the true answer and ln⁡\lnln is the natural logarithm. A model's verdict on an example is whichever option it gave the highest probability; there are no ties.

Five entries from the log:

examplemodelloss
E1spam filter0.510.510.51
E2spam filter0.920.920.92
P1animal classifier0.510.510.51
P2animal classifier0.920.920.92
P3animal classifier1.611.611.61

Using nothing but this table, for which examples can you say for certain whether the model's verdict was right or wrong?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.