A fair die's entropy: log₂(6) ≈ 2.58 bits
Image: Raimond Spekking, CC BY-SA 4.0, via Wikimedia Commons
A fair die's entropy: log₂(6) ≈ 2.58 bits
Entropy H = -Σ p(x) log₂ p(x) measures average surprise in bits
Entropy H = -Σ p(x) log₂ p(x) quantifies uncertainty in a system
Cross-entropy H(p,q) = -Σ p(x) log q(x) measures how well q approximates p
Cross-entropy H(p,q) = -Σ p(x) log q(x) quantifies approximation quality between distributions p and q
Entropy (information theory)
H(X) = −∑x∈X p(x) log(p(x))
Cross-entropy
Cross-entropy loss equation: H(p, q) = -Σ(p(x) * log(q(x)))
log-loss / cross-entropy loss penalizes: confident wrong predictions more heavily
Log-loss penalizes confident incorrect predictions more heavily
Perplexity
Perplexity = 2^H
One email a day: 5 concepts + the 5 stories that matter →
Swipe through 100 ML concepts daily
Open TickerNews