I have designed a custom loss function where I have to maximize the KL divergence. So I took KL(P||Q) and negated it and now my loss function is -KL(P||Q) and this loss function leads to negative values. I tried squaring loss which is resulting in a 0.0 loss. So what happens if we negative values. how can I convert to positive?
Asked
Active
Viewed 3,290 times
1
1/KL- then minimizing that is the same as maximizing the KL. If that measure makes sense, I don't know, but that's one way to do it – CutePoison Dec 06 '21 at 14:071/KLand notKL– CutePoison Dec 07 '21 at 10:23