Skip to content
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

Require sample_shape passed as keyword argument to AutoGuides #1659

Merged
merged 2 commits into from
Oct 9, 2023

Conversation

tare
Copy link
Contributor

@tare tare commented Oct 7, 2023

@fehiepsi proposed in #1644 that the signatures of .sample_posterior() of different implementations of AutoGuide are made consistent in two steps: 1) enforce that sample_shape is passed as a keyword argument in the next release and 2) introduce *args and **kwargs after the next release.

This PR addresses the first step by putting * before sample_shape in the signatures of .sample_posterior() that do not have *args and **kwargs yet.

Probably these changes do not require additional unit tests.

Copy link
Member

@fehiepsi fehiepsi left a comment

Choose a reason for hiding this comment

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

Thanks, @tare!

@fehiepsi
Copy link
Member

fehiepsi commented Oct 9, 2023

Hi @tare, could you help removing PriorModelGen and its corresponding usages in that file? It's causing CI to fail.

@tare
Copy link
Contributor Author

tare commented Oct 9, 2023

Sure thing! Yep, it looks like jaxns got a new release recently; this was the commit in which PriorModelGen got removed.

@fehiepsi fehiepsi merged commit dca5b2b into pyro-ppl:master Oct 9, 2023
4 checks passed
@fehiepsi
Copy link
Member

fehiepsi commented Oct 9, 2023

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants