Skip to main content

NumPyro integration for dynamical systems

Project description

GitHub Actions Workflow Status GitHub License

Welcome to Dynestyx

dynestyx logo

dynestyx is a library designed for Bayesian modeling and inference of dynamical systems. It is an extension of NumPyro, and incorporates a wide variety of state-of-the-art inference methods for state space models.

To get started, you can read the documentation (version menu: stable = latest release, latest = main) or go straight to the quickstart. See Versioned documentation for details.

Goals of dynestyx

The goal of dynestyx is to decouple model code and inference code for dynamical systems, a common theme in probabilistic programming languages like NumPyro. The benefits of this are two-fold: modellers get an interface that is simple to use, with access to advanced inference methods for free. Methods researchers simultaneously get a platform where their methodologies can be immediately used, with a natural testbed of problems to evaluate performance on.

Relation to Existing Libraries

While many probabilistic programming languages now exist (e.g., Pyro, NumPyro, and Stan), these solutions do not offer support of structured inference methods specifically designed for the dynamical systems setting, leading to subpar inference and ad-hoc code that may be difficult to write for practitioners. In dynestyx, we treat dynamical systems as first-class objects, with direct interfacing to methods like pseudo-marginal MCMC and stochastic variational inference for parameter inference.

Simultaneously, many strong solutions exist for inference in dynamical systems; modern examples include dynamax for discrete-time dynamical systems, cd-dynamax for continuous-time dynamical systems, and PFJax for nonlinear and non-Gaussian discrete-time dynamical systems. While featureful, one drawback of this suite of methods is a varied set of APIs, with model code that is tightly coupled with the resulting inference method. In dynestyx, we offer a large variety of different inference methods under the same roof in a unified, abstract API. Iterating and selecting the appropriate inference methods is thus a significantly simpler process. Using tools from PPLs, we are also able to introspectively analyze a given model, and select appropriate inference methods which take advantage of model structure (e.g., linearity or Gaussianity).

Installation

For installation, we recommend uv:

uv venv
source .venv/bin/activate
uv pip install git+https://github.com/BasisResearch/dynestyx.git

But pip works as well:

pip install git+https://github.com/BasisResearch/dynestyx.git

Quickstart

We provide a more mathematical introduction in the Introduction section. For a hands-on tutorial with code examples, check out the Quickstart Tutorial.

Contributing

Contributions are welcome. See Contributing Guidelines for development setup, testing expectations, and the pull request workflow.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dynestyx-0.0.3.tar.gz (25.6 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dynestyx-0.0.3-py3-none-any.whl (75.6 kB view details)

Uploaded Python 3

File details

Details for the file dynestyx-0.0.3.tar.gz.

File metadata

  • Download URL: dynestyx-0.0.3.tar.gz
  • Upload date:
  • Size: 25.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dynestyx-0.0.3.tar.gz
Algorithm Hash digest
SHA256 19860ef285afffb6246cf85ec6357ae2915145e5d2a7c0c796508f226589c746
MD5 2615f0bce71f6f84a36dcc258bf27ff4
BLAKE2b-256 5539f4551fdfb16b699e3280c1a47763af278a0dc90f9ce606dc08bee0146630

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynestyx-0.0.3.tar.gz:

Publisher: python-publish.yml on BasisResearch/dynestyx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file dynestyx-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: dynestyx-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 75.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for dynestyx-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7cd4adf0a36adaea4ce495957e9934e77c990809249e586d3b47dd0c63bba6ab
MD5 14e587e3498e563e3e9cf6a08e931def
BLAKE2b-256 08839c6204cfb25e9a18d6011d679873e1ebf9ac4fb7ff4845a0ba9f266196c1

See more details on using hashes here.

Provenance

The following attestation bundles were made for dynestyx-0.0.3-py3-none-any.whl:

Publisher: python-publish.yml on BasisResearch/dynestyx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page