Skip to content

proper handling of chain_idx in sample() #4495

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 7 commits into from
Mar 3, 2021

Conversation

Spaak
Copy link
Member

@Spaak Spaak commented Mar 1, 2021

This will fix #4469, in conjunction with arviz-devs/arviz#1590 on Arviz.

This particular PR ensures proper handling of chain_idx. It also adds a new test, which is now still expected to fail (marked as xfail), pending the merge of the Arviz PR.

@OriolAbril
Copy link
Member

I think sample_posterior_predictive also uses _DefaultTrace, maybe something else has to be changed?

@Spaak
Copy link
Member Author

Spaak commented Mar 2, 2021

Thanks; indeed sample_posterior_predictive also required a small change.

@Spaak Spaak requested a review from OriolAbril March 3, 2021 08:21
@OriolAbril OriolAbril merged commit cf662c9 into pymc-devs:master Mar 3, 2021
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.

chain_idx parameter in sample cannot take values other than zero
2 participants