Log Loss

Category: Foundations of ML/AI

A metric that evaluates the quality of probabilistic predictions by penalizing predictions based on their distance from the true label.

Full Explanation

Log loss (logarithmic loss) measures the performance of a classification model by evaluating the probability estimates it assigns to each class. It is mathematically equivalent to cross-entropy loss when used as an evaluation metric. Log loss heavily penalizes confident but wrong predictions: predicting 0.99 probability for the wrong class results in a much higher loss than predicting 0.51. This makes it a stricter metric than accuracy, as it rewards well-calibrated probability estimates. A perfect model has a log loss of zero. Log loss is the primary evaluation metric in many Kaggle competitions and is widely used when probability estimates are as important as the final class prediction. It encourages models to be honest about their uncertainty.

Related Terms

More in Foundations of ML/AI

Explore More