A loss function used to evaluate probability distributions. The idea is straightforward, Say you have a target that is the correct answer. You check the probablility output of your ground truth target in your modelβs predicted distribution.
Reasoning about this, a probability distribution can only go from 0 to 1. a log of a value between 0 to 1 is negative. So negate it.
Another useful property of this is that very confident mistakes, where , the log approaches near infinity. So it penalizes very confident mistakes.
Another useful property of the logarithm is that joint likelihoods decompose into additive conditional operations, which helps with numerical stability.