Open ezhang7423 opened 2 years ago
No, this is not a bug. The mean and std are clamped before the distribution is returned, so we can stack any distribution on top of that mean and variance. For the case of the "normal" distribution, this just means it is a normal distribution with mean and variance falling in some range.
The truncated and squashed distributions put the distribution itself through a transformation, not the mean and variance (i.e. they only draw samples within fixed bounds).
I believe I have found a bug in your density estimation for the normal distribution. This is currently your GaussMLP:
In the normal case, since you're performing a
tanh
transformation before returning a normal distribution, the density function should include anatanh
and a normalization term:Do you agree?