Cross-Entropy, Honestly

Worked numerical examples of cross-entropy, per-row surprise, and batch averages with live tensors and checked exercises.

Cross-entropy row by row

Compute per-row surprise, batch averages, and probability losses on small inspectable tables.

  1. Surprise Adds Over Rows

    why negative log-probabilities add across independent observations

  2. One Small Probability Raises the Mean

    why one tiny true-class probability dominates a batch average

  3. The Average Hides the Row

    why reporting only the batch mean conceals individual failures

  4. Same Correct Count Can Have Different Loss

    why hard correct counts stay flat when confidence moves