NumPyro integration for dynamical systems
Project description
Welcome to Dynestyx
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 pip install dynestyx
But pip works as well:
pip install dynestyx
Developers: See Contributing Guidelines for the development setup using
uv sync.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dynestyx-0.0.6.tar.gz.
File metadata
- Download URL: dynestyx-0.0.6.tar.gz
- Upload date:
- Size: 26.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24788b257abac0d8e246af9c9d354a1e42504c1de8291c08359ff6f1a1e50f91
|
|
| MD5 |
b8c45141d3335a16196dba73d15c562b
|
|
| BLAKE2b-256 |
5267e8b61e40bef2203da8f6447f21469bcfa1ef414a44bd607ddc2dda80ef9d
|
Provenance
The following attestation bundles were made for dynestyx-0.0.6.tar.gz:
Publisher:
python-publish.yml on BasisResearch/dynestyx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dynestyx-0.0.6.tar.gz -
Subject digest:
24788b257abac0d8e246af9c9d354a1e42504c1de8291c08359ff6f1a1e50f91 - Sigstore transparency entry: 1350155914
- Sigstore integration time:
-
Permalink:
BasisResearch/dynestyx@a1f56c42407a9bc9cfd1065fea2c415bce643987 -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/BasisResearch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a1f56c42407a9bc9cfd1065fea2c415bce643987 -
Trigger Event:
release
-
Statement type:
File details
Details for the file dynestyx-0.0.6-py3-none-any.whl.
File metadata
- Download URL: dynestyx-0.0.6-py3-none-any.whl
- Upload date:
- Size: 86.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b28f841ffb17e00760b55391dc18ed03c8c3f2d46027e6a71a99ec775227240d
|
|
| MD5 |
e16a3475caa0bbb85eb971b3bfb3607e
|
|
| BLAKE2b-256 |
feaa53f4e5911caa66bd846fdc244039732b4420ca98625be0e713ffb8fed1bb
|
Provenance
The following attestation bundles were made for dynestyx-0.0.6-py3-none-any.whl:
Publisher:
python-publish.yml on BasisResearch/dynestyx
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dynestyx-0.0.6-py3-none-any.whl -
Subject digest:
b28f841ffb17e00760b55391dc18ed03c8c3f2d46027e6a71a99ec775227240d - Sigstore transparency entry: 1350156020
- Sigstore integration time:
-
Permalink:
BasisResearch/dynestyx@a1f56c42407a9bc9cfd1065fea2c415bce643987 -
Branch / Tag:
refs/tags/v0.0.6 - Owner: https://github.com/BasisResearch
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@a1f56c42407a9bc9cfd1065fea2c415bce643987 -
Trigger Event:
release
-
Statement type: