Repository navigation
Add iterated filtering and a Dacca example - #286
Open
kunyanghe21 wants to merge 2 commits into
Open
kunyanghe21 wants to merge 2 commits into
kunyanghe21 wants to merge 2 commits into
Conversation
Contributor
|
@SamDuffield anything left on your side? |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds
cuthbert.smc.iterated_filtering.fitand a small Dacca cholera example. The IF2 implementation uses Cuthbert's existing particle-filter callbacks and resampling functions. It perturbs parameters, resamples them with the state particles, and reduces the perturbation scale between iterations.The tests compare the final parameter particles, the parameter means at each iteration and the perturbed log likelihoods with a separate IF2 calculation. The SMC and Dacca tests passed locally (117 tests, including 29 specific to IF2 and Dacca). The Dacca example also ran from the installed wheels.
To run the IF2 and Dacca tests from the repository root:
The larger comparison, including failed checks and fits, is recorded in
pypomp/comparisons: numerical checks and optimization results.We understand that IF2 and this example may not fit Cuthbert's planned direction, and that you may prefer not to include them.
The code and documentation were prepared with AI assistance.