Skip to content

Update more samplers for v4 compatibility #4559

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

Merged
merged 33 commits into from
Mar 25, 2021

Conversation

brandonwillard
Copy link
Contributor

This PR makes the changes necessary to run more step methods in v4 (e.g. basic Metropolis, slice sampler, etc.)

@brandonwillard brandonwillard self-assigned this Mar 23, 2021
Copy link
Member

@michaelosthege michaelosthege left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if I can help to take care of the remaining metropolis samplers - particularly w.r.t. RaveledVars changes.

while y <= logp(ql): # changed lt to leq for locally uniform posteriors
while y <= logp(
RaveledVars(ql, q0.point_map_info)
): # changed lt to leq for locally uniform posteriors
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line is split by black only because of the comment (compare next while). The comment should probably go on its own line above..

@brandonwillard brandonwillard force-pushed the update-samplers branch 3 times, most recently from 1ce73c3 to b171224 Compare March 24, 2021 16:53
@brandonwillard
Copy link
Contributor Author

@ricardoV94, once these tests pass, I'll merge this and help out with #4548 (e.g. it will need to be rebased, etc.)

@brandonwillard brandonwillard force-pushed the update-samplers branch 2 times, most recently from 8da59fe to 5fa3572 Compare March 24, 2021 21:05
@brandonwillard brandonwillard merged commit 985d3cd into pymc-devs:v4 Mar 25, 2021
@brandonwillard brandonwillard deleted the update-samplers branch March 25, 2021 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants