Last active
July 30, 2022 05:41
-
-
Save npyoung/adc097f95c6148a5e31c2f388efaa697 to your computer and use it in GitHub Desktop.
A state space model distribution for pymc3
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I used this code for my research. Check the package BSSPy for the work https://arxiv.org/pdf/1901.07469.pdf.
Just remember the caveats that if you use a mean-field VI then it does not preserve the Markov dependency. i.e.$N(x_t | x_t-1 )$
More elaborate discussions about mean-field and structured mean field here. http://www.ee.columbia.edu/~sfchang/course/svia-F03/papers/factorial-HMM-97.pdf
I think the full rank ADVI may preserve this dependency but can be slower.
Also, I would ask for some thoughts regarding the Tau initialization -
It seems like a single random variable for the Precision term is being broadcasted. I would prefer to declare it as a covariance matrix instead. I am trying to put together a code with reparameterization trick and will push a new module soon.