An unofficial, read-only Hacker News reader. Join the beta →

The KL Divergence Is Never Negative, Except in PyTorch (opens external site)

97 points by Anon84 3 days ago | arxiv.org | 40 comments on HN

View full thread · View on Hacker News

Comment thread (3)

  1. Why not −0i?
    Replies (2)
    1. Because i is not a meaningful concept in floating point numbers.
    2. It's customary to use the branch cut where sqrt(-1) = i.

      Honestly it doesn't really matter but that's because you can't actually tell i and -i apart.