probml / dynamax

State Space Models library in JAX
https://probml.github.io/dynamax/
MIT License
634 stars 70 forks source link

Issue with LinearGaussiamSMM with time-varying emissions weights #347

Closed spyectr closed 5 months ago

spyectr commented 7 months ago

I am working with the LinearGaussianSSM with time varying emission weights based on the example in Online linear regression using Kalman filtering. I found problems with 1) setting model parameters and sampling data which generates samples with wrong emission dimensions; 2) performing inference with EM, when we freeze emission weights (Trainable==False) to given time-varying values, the model still learns them but with the wrong dimension; 3) fit_sgd gives error messages. I illustrated these issues in this notebook.

slinderman commented 5 months ago

Hopefully we've fixed these issues through our discussion! See PR https://github.com/probml/dynamax/pull/356.

Short story: