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

Gm/dynamic length scan #49

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft

Gm/dynamic length scan #49

wants to merge 5 commits into from

Conversation

georgematheos
Copy link
Collaborator

This PR updates the latent particle system model, so that the length of the scan combinator can be changed dynamically, via calls to trace.update.

Unfortunately, making this change means that we have to pass around arrays of size max_num_timesteps that only contain num_timesteps < max_num_timesteps valid pieces of data. This means we need to pass around genjax.Mask objects, and need to be a little bit careful to not to index at invalid time slices in some of the produced data structures.

@georgematheos
Copy link
Collaborator Author

This builds on #47 which is why there are so many changes.
@nishadgothoskar once you review and merge #47 can you please rebase this branch with the updated main?

@georgematheos
Copy link
Collaborator Author

tests all pass at this point, btw

@georgematheos georgematheos marked this pull request as draft July 1, 2024 14:17
@georgematheos georgematheos marked this pull request as ready for review July 1, 2024 14:33
@georgematheos georgematheos marked this pull request as draft July 1, 2024 17:57
@georgematheos
Copy link
Collaborator Author

Marking this as a draft for now, since we can't implement inference in this version of the model yet due to https://github.com/probcomp/genjax/issues/1188.

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.

1 participant