Information Theory / Beyond entropy
KL Divergence and Cross-Entropy
The cost, in bits, of believing the wrong distribution, and the loss function behind modern classifiers.
Contents 2 sections
By the end you can
- Compute KL divergence
- Relate cross-entropy, entropy and KL divergence
- Explain why cross-entropy is used as a loss
Helps to know: Compression and Huffman Codes
§1Extra bits for a wrong model
If data comes from but you design your code for , you pay extra bits per symbol. It is never negative, is zero only when , and is not symmetric.
Check yourself
- Q1