Model Training · Level 2 of 5
Cross-Entropy Loss
A loss measuring how poorly predicted probabilities match a target distribution.
For a one-hot target, it is the negative log probability of the correct class.
Example
Assigning low probability to the true class incurs a large penalty.
Listen to the definition and example
Audio transcript
Cross-Entropy Loss. A loss measuring how poorly predicted probabilities match a target distribution. For a one-hot target, it is the negative log probability of the correct class. For example: Assigning low probability to the true class incurs a large penalty.
Explore this concept
A useful analogy
Charging more when the model assigns little probability to what actually happened.
Technical detail
H(p,q) = −Σ p_i log q_i. For a one-hot label y the loss is −log q_y.
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.