Two Hundred Photos, One Average

Loss FunctionsMedium+20 XP+20

Two Hundred Photos, One Average

A classifier sorts photos into cat, dog or bird, with exactly one correct animal per photo. It ends in softmax and is scored with categorical cross-entropy: the loss on one photo is

−ln⁡(probability given to the true animal)-\ln(\text{probability given to the true animal})−ln(probability given to the true animal)

where ln⁡\lnln is the natural logarithm, and the validation loss is the average over the validation photos.

On 200 validation photos the loss is 0.350.350.35. A teammate reads that as "the model typically gives the true animal about 70%70\%70%".

Looking photo by photo, the team finds two groups:

  • on 190 photos, the model gives the true animal a probability of exactly 0.850.850.85;
  • on the other 10 photos, it gives the true animal the same probability as each other.

What probability does the model give the true animal on each of those 10 photos?

Round to 3 decimal places.

0% confident100% confident

The curve is gentle on the right and shoots up on the left. Being almost certain about the wrong answer is punished without limit.

Hints

Solve it to unlock the solution

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