Negative Log Probability as a Classification Loss
For a known correct class, negative log loss increases as the assigned probability falls. The logarithm base should be consistent with the stated metric.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Compare two predictions
Giving the observed class probability one half incurs \(\log 2\). Giving it one quarter incurs \(\log 4\), twice as much under the same log base. See probability estimates and actions.
Calculate from a stable representation
A reported probability rounded to zero may be unsuitable for a direct log computation. Well-designed losses can work from logits. See proper scoring rules for why probability scores reward accurate distributions.[1]