Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
janalsncm
· 3y ago · 0 comments
Btw, KL divergence isn’t symmetrical. So D(P,Q) != D(Q,P). If you need a symmetrical version of it, you can use Jensen–Shannon divergence which is the mean of D(P,Q) and D(Q,P). Or if you only care about relative distances you can just use the sum.
Comments
[–]
necroforest
3y ago
JS divergence isn't just the average. it's 0.5(KL(P||M) + KL(Q||M)) where M is the mixture of P and Q: M = 0.5(P + Q)
[–]
janalsncm
OP
3y ago
Oh nice catch. All this time I had been thinking the wrong thing.