Why does the cross-entropy loss include a logarithm?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks why the cross-entropy loss used to train classifiers takes the logarithm of predicted probabilities. Tests your grasp of maximum likelihood, numerical stability, gradients through softmax, and what a proper scoring rule means for calibration.