Cross-entropy (log-loss)
The loss for probabilistic classifiers: it heavily penalises confident wrong predictions.
For binary labels with predicted probability :
For classes it is of the probability given to the true class. Predicting the right class with probability 0.99 costs almost nothing; predicting it with 0.01 costs a lot. Minimising cross-entropy is the same as maximum likelihood, and it is the standard output loss of logistic regression and neural-network classifiers (usually with a softmax).
See it in action
- Logistic regressionThe workhorse classifier: a linear score turned into a calibrated probability by the sigmoid.
- Softmax (multinomial logistic) regressionLogistic regression for many classes: one linear score per class, normalised by the softmax.
- Neural networks and backpropagationMulti-layer perceptrons: learned features, activations, the chain rule, and training tricks.