Skip to content
Information Sciences
Machine Learning
20th century
Intermediate

Cross-Entropy Loss

L=iyilog(y^i)L = -\sum_{i} y_i \log(\hat{y}_i)

Measures difference between true labels and predicted probabilities in classification.

By Various

Information Sciences
Cross-Entropy Loss
20th century · Various
Human Reviewed
84%

Rabbit Hole Mode

Five doors into the universe behind this equation. Choose your path.

Why it matters: Default training objective powering image recognition, NLP, and modern AI.

Discoverers: Various (20th century)

What does it mean?

Measures difference between true labels and predicted probabilities in classification.

Why should I care?

Default training objective powering image recognition, NLP, and modern AI.

Equation Compass

West — History

South — Derivations

Variables & Units

SymbolNameUnitMeaning
LLLossCross-entropy loss
yiy_iTrue labelOne-hot or soft label
y^i\hat{y}_iPredictionPredicted probability

Worked Example

Confident wrong prediction → very high loss.

AI Guide (Pro)

Ask questions about equations and get answers grounded in the Equation Universe catalog.

Share this equation

Equation Universe

Cross-Entropy Loss

L=iyilog(y^i)L = -\sum_{i} y_i \log(\hat{y}_i)

Real-world impact

Life sciences

Mathematical models drive medicine and biotech.

Photo: Unsplash — laboratory

Measures difference between true labels and predicted probabilities in classification.

equation-universe.vercel.app

Post