I am using Kullback–Leibler divergence criteria for comparing my estimation and true density functions, but I have zero value on my estimation function when I have a testing set of size 10000, mostly in the last testing points. Finally, I get infinity because of the formula of KL as follow,
$$ KL = \int_R f(x) \log\left\{\frac{f(x)}{\hat{f}(x)}\right\} dx$$
Could I still use this criteria ? If yes, how can I use it? if not, is there any other criteria and what's their formula?