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

Add pairwise correlation plot to sir.py #2463

Merged
merged 2 commits into from
May 7, 2020
Merged

Add pairwise correlation plot to sir.py #2463

merged 2 commits into from
May 7, 2020

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented May 5, 2020

Addresses #2426

This PR:

  1. Adds a pairwise correlation plot to examples/contrib/epidemiology/sir.py
  2. Changes the rho prior from Uniform(0,1) to Beta(2,2) to avoid unreasonably hight initial estimates of rho by SMC; this fixes a regression in quality introduced in Use SMC to initialize compartmental models #2452

Example

python examples/contrib/epidemiology/sir.py -p=10000 -d=64 -n=400 -m=100 --plot

image

@martinjankowiak martinjankowiak merged commit 8633b71 into dev May 7, 2020
@fritzo fritzo deleted the sir-corr-plot branch July 14, 2020 01:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants