probml / dynamax

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

Question about hierarchical model support in dynamax #360

Closed albertpod closed 1 month ago

albertpod commented 2 months ago

Hello!

I couldn't locate the discussions section, so I'm submitting this as an issue. However, I don't actually have a problem—just a question.

First, I want to commend the fantastic work on the Dynamax package. The examples are exceptionally well-crafted and very insightful—truly impressive!

I am currently benchmarking some of your examples against RxInfer.jl and am particularly impressed with Dynamax's scalability. I have a specific question regarding the support for hierarchical models in Dynamax. Is it possible to enhance the following example with additional layers of complexity? For instance, could I modify the MLP model in the nonlinear Gaussian SSM example to include higher levels of nonlinearities, such as:

This is a simplified representation of the model I am considering. Thank you for your dedication and excellent work!

Cheers, Albert