Machine Learning, Heartbeat.
Where n is the number of samples, y is the true label, and y_hat is the predicted probability. Log loss is helpful when penalizing the model for being confidently wrong. It is commonly used in multi-class classification problems, where the output is a probability distribution over multiple classes.