Code for the paper Modeling state-dependent communication between brain regions with switching nonlinear dynamical systems, ICLR 2024.
A hybrid generative model for multi-region neural data that combines structured SSM dynamics with a Transformer-based inference network. The model infers latent states and communication signals across brain regions, trained end-to-end using a structured variational inference scheme.
model.py— top-level model definitiongenerative_models.py— SSM generative componentsinference.py— Transformer-based inference networknetworks.py— shared network componentsrun_training.py/run_analysis.py— training and analysis entry pointsrun-configs/— experiment configuration files
Python 3.x, JAX, TensorFlow (data pipeline)
