Cross−entropyCross-entropy

Cross-entropy — the training loss

The average surprise when the truth is p but you predict with q. Against a one-hot target it is minus the log of the probability given to the correct class.

Minimizing it is the same as maximizing likelihood (sections 3.4 and 3.5). It is the loss of every classifier and language model in the course.

Where the course uses it

Related terms