Cross-Entropy Over a Mini-Batch

Information Theory & Stochastic ProcessesMedium+20 XP+20

Cross-Entropy Over a Mini-Batch

A classifier over four classes is scored on a mini-batch of four examples. Each example has a one-hot true label. The probability the model assigned to that example's true class was:

  • Example 1: 0.50.50.5
  • Example 2: 0.250.250.25
  • Example 3: 0.1250.1250.125
  • Example 4: 0.06250.06250.0625

Using log⁡2\log_2log2​, what is the average categorical cross-entropy loss per example, in bits?

Hints

Solve it to unlock the solution

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

Select all that apply.