AI engineering glossary · Deep learning core

What is cross-entropy loss?

Cross-entropy loss (also called Log loss, Categorical cross-entropy): A loss for classification that measures the gap between predicted probabilities and the true labels: for one example it is minus the log of the probability assigned to the correct class. Confident wrong answers are punished heavily.

Level: beginnerTopic: Deep learning core

Cross-entropy loss: an example

If the model gives the true class probability 0.9 the loss is -ln 0.9, about 0.105; at 0.1 it is about 2.30.

Related terms

More Deep learning core terms

Where you learn it

Cross-entropy loss is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.