Skip to content

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 force-pushed the gm/dynamic_length_scan branch from f2dc6d5 to ed3d5ca Compare July 1, 2024 14:08
@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.

2 participants