-
-
Notifications
You must be signed in to change notification settings - Fork 986
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
Fix for mcmc api transforms None for potential_fn #2266
Conversation
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, once the spacing issue is fixed. Thanks for fixing this!
I just pushed a fix to release a patch for 1.2 with this fix. |
There are a few issues still with multiprocessing, I'll either fix it here or put out a separate PR. |
ludkinm - Could you review the minor fixes that I made for #2272, and let me know if that's in line with your use case? |
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 @ludkinm and @neerajprad, especially for your comments about what is going on!
@neerajprad could you dismiss your previous review?
@neerajprad your review is still in change request status, which does not allow me to merge. |
Sorry, I just know that I can dismiss your review :) |
Sorry I have been away from the office so didn't respond. |
Fixes #2272.
This PR fixes a logic gap for assign
self.transforms
in theMCMC
api.It can be the case that both
MCMC.transforms is None
andMCMC.kernel.transforms is None
in which case MCMC.transforms should be set to an empty dict.
This bug appears when using HMC/NUTS with a potential_fn.
Note sure on the style guide for inline comments so will leave them as is.