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

Is it possible to fit states to more than one series at a time? #37

Closed
ewerlopes opened this issue May 23, 2019 · 5 comments
Closed

Is it possible to fit states to more than one series at a time? #37

ewerlopes opened this issue May 23, 2019 · 5 comments

Comments

@ewerlopes
Copy link

Hi,

Thanks for sharing this library. I was wondering whether we can fit the states on a collection of time series instead of just one as you do on the examples.

Thanks.

@bagibence
Copy link
Contributor

Yes, I've been using SLDS on a list of recordings. You just have to pass a list of time series instead of a single one to the functions. The list elements have to be in the shape of T x D where T is the number of time points (the different time series can have different lengths) and D is the dimensionality of your observations.

@slinderman
Copy link
Collaborator

Thanks @bagibence, that's exactly right.

@ewerlopes
Copy link
Author

@bagibence That is good news! I am going to try it right now! Thanks for the prompt reply!

@ewerlopes
Copy link
Author

@slinderman, just one doubt... the fact that we see the ELBO not having a monotonically increasing behavior comes from the fact you are using the stochastic version for the mean field variational inference, right?

@slinderman slinderman reopened this May 24, 2019
@slinderman
Copy link
Collaborator

slinderman commented May 24, 2019

The ELBO should monotonically increase for HMMs fit with EM. We've implemented exact M-steps for most observation models. For SLDS, the examples are currently using black box variational inference with SGD, Adam, rmsprop, etc. We've implemented a few variational families including mean field

q(x) = \prod_t N(x_t | mu_t, Sigma_t)

and a structured variational posterior

q(x) = N(x | mu, Sigma)

where mu is a (TD,) vector and Sigma is a (TD x TD) matrix with a block-tridiagonal inverse. I.e. the variational posterior corresponds to a chain structured graph, as in an LDS.

In a separate branch, David Z. and I are working on a Laplace variational inference method that maintains chain-structured posteriors on both q(x) and q(z), and is much more efficient than BBVI.

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

No branches or pull requests

3 participants