-
Notifications
You must be signed in to change notification settings - Fork 152
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
expose enable_transform for all methods. #756
Conversation
Codecov Report
@@ Coverage Diff @@
## main #756 +/- ##
==========================================
+ Coverage 73.87% 74.07% +0.19%
==========================================
Files 78 78
Lines 6071 6067 -4
==========================================
+ Hits 4485 4494 +9
+ Misses 1586 1573 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for implementing this! I like the idea of exposing enable_transform
in likelihood_estimator_based_potential()
(etc).
I'm less sure about exposing it also in build_posterior()
(instead of just leaving it as a feature of the sampler interface), but I could see pros and cons for this so I'm fine with merging this.
I see your point and agree, we can expose it only in the sampler interface. I encountered the additional problem that |
e0ed19b
to
b4acede
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
the current API does not allow to not perform sampling in unconstrained space.
In scenarios where one has already transformed parameters to unconstrained space, one workaround is to manually build potential functions and pass them to the posterior object.
But it would be nice to enable this for
build_posterior
as well, as it offers more flexibility to switch between sampling methods etc.This PR exposes the
enable_transform
argument frommcmc_transform
at the top level to allow this for all methods.Note: To keep things parallel for all three methods, this PR reverts #714, which enabled custom transforms for
NPE
.