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

Update pymc3_generative_model.py #262

Merged
merged 2 commits into from
Mar 17, 2022
Merged

Update pymc3_generative_model.py #262

merged 2 commits into from
Mar 17, 2022

Conversation

wangfan860
Copy link
Contributor

Bug Fixes

add init="adapt_diag" to pm.sample to avoid the Mass matrix contains zeros on the diagonal error.

jitter+adapt_diag made initialization much more sensitive, causing ValueError: Mass matrix contains zeros on the diagonal to appear more frequently.

add `init="adapt_diag"` to `pm.sample` to avoid the `Mass matrix contains zeros on the diagonal` error.

`jitter+adapt_diag` made initialization much more sensitive on the master branch, causing ValueError: Mass matrix contains zeros on the diagonal to appear more frequently.
@github-actions
Copy link

github-actions bot commented Mar 16, 2022

The style in this PR agrees with black. ✔️

This formatting comment was generated automatically by a script in uc-cdis/wool.

Copy link
Contributor

@kmhernan kmhernan left a comment

Choose a reason for hiding this comment

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

any other exception would die here, not sure if that matters

@wangfan860 wangfan860 merged commit 1c3185e into master Mar 17, 2022
@wangfan860 wangfan860 deleted the wangfan860-patch-1 branch March 17, 2022 00:41
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.

2 participants