Cross-entropy

Applies to: python, general

Cross-entropy measures how much probability a classifier assigned away from the true class.

loss = -np.log(p_true)

See also: loss-function, softmax