-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
logpdf
of UnivariateTransformed
produces StackOverflowError
#251
Comments
Much appreciated 🙏
Unfortunately it doesn't work because the |
Hmmm ok, but I assume you mean that the Bijectors.PlanarLayer works only with vectors, not the mathematical object? Maybe I'm wrong, but the definition in Variational Inference with Normalizing Flows doesn't mention anything about restricting to only vectors? |
If it really cannot be done, perhaps we could return a useful error message when someone tries |
Yeah, the actual transformation does work with a real IIRC.
It can be done, but the current implementation assumes we're working with an array and so we'd need to implement something that works with a IMO this doesn't quite seem worth it since you can always just do That's not sufficient because I agree we should error if you try to call |
So for now, instead of doing |
Ok thank you for your help. Perhaps when I have a bit of time I can get to grips with the codebase and propose a fix. |
That would be very much appreciated @lgrozinger ! Will keep an eye out:) |
Taking the
logpdf
of aMultivariateTransformed
works.This is great! All hail the developers! But for a
UnivariateTransformed
it does not work.I understand that most use cases for this package will want
MultivariateTransformed
, but I would have expected this to work. Either I'm missing something or this is a bug. Can anyone confirm either way?I am using Bijectors v0.12.3.
The text was updated successfully, but these errors were encountered: