Repository navigation
Conversation
|
This PR adds support for switching linear dynamical systems (SLDS): models where a discrete regime selects how a continuous state evolves and generates observations. The same model can be used for simulation, filtering, and forecasting. Inference uses a Rao–Blackwellized particle filter (RBPF) through CD-Dynamax. It samples the discrete regime histories and uses conditional Kalman updates to integrate out the continuous state.
A new tutorial walks through generating synthetic data with known controls, estimating transition probabilities and state-coupling parameters from incomplete observations, and making predictive rollouts conditional on the fitted parameters. The PR also raises the minimum CD-Dynamax version to 0.5.0 and adds tests for mixed-state validation, batched filtering, missing observations, and NumPyro inference. |
DanWaxman
left a comment
There was a problem hiding this comment.
Some high-level thoughts below, didn't read in depth.
It also makes me curious if we should make a Rao-Blackwellized MCMC path (I think @lll6924 has worked on this type of thing, wonder if it's something he'd be interested in writing).
Co-authored-by: Dan Waxman <dan.waxman1@gmail.com>
Thank you for the invitation. I am too busy preparing for teaching right now (I'll develop 5 courses for an AI major). If I have time in winter/summer, I will check if I can contribute. The package looks very interesting to me! |
That's a lot of courses. good luck! And no rush/pressure at all, just figured I'd flag it as something close to your work (and, at least, someone can use/reference your prior work if we get around to it before then) :) |
mattlevine22
left a comment
There was a problem hiding this comment.
@DanWaxman I think it's ready for a look when you have a chance!
DanWaxman
left a comment
There was a problem hiding this comment.
Still didn't quite read through fully, but here are some changes that will require some more thought.
Also, Claude points out that time alignment isn't the same... dynamax treats SLDS different than other filters and actually don't pair a y_0 to x_0 (ugh!). This also happens for controls (ugh!!).
There was a problem hiding this comment.
I think this reads a bit choppy and not as gentle as our other "gentle intros." I guess it would be fine to merge and mark as an issue, though; this has been hanging long enough.
Supersedes #294 #279.