You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, probably not a big issue as most people don't use the uniform distribution, but I think the log-prob is wrong. It should return -inf if any element of a data point is outside the bounds, but currently, it just averages how many are out of bounds. For example:
unif=StandardUniform((2,))
x=torch.tensor([-0.5, 0.5])
unif.log_prob(x)
# returns -0.69 but should be -inf
The text was updated successfully, but these errors were encountered:
Hi, probably not a big issue as most people don't use the uniform distribution, but I think the log-prob is wrong. It should return
-inf
if any element of a data point is outside the bounds, but currently, it just averages how many are out of bounds. For example:The text was updated successfully, but these errors were encountered: