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

Use systematic resampling in SMCFilter #2488

Merged
merged 4 commits into from
May 18, 2020
Merged

Conversation

fritzo
Copy link
Member

@fritzo fritzo commented May 16, 2020

Addresses #2426

This PR

  1. switches from multinomial resampling to systematic resampling (i.e. quasi-random sampling) in the SMCFilter, increasing sample diversity.
  2. switches from ValueError to a new exception SMCFailed and uses retry logic in CompartmentalModel in case of failure.

Tested

  • added a unit test for _systematic_sample()
  • behavior change is covered by existing tests
  • ensured retry logic works on a hard test case

@fritzo
Copy link
Member Author

fritzo commented May 18, 2020

Thanks for reviewing!

@martinjankowiak martinjankowiak merged commit 28dde74 into dev May 18, 2020
@fritzo fritzo deleted the smc-systematic-resample branch June 5, 2020 15:31
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