Skip to main content

bilby-numpyro

Sampler plugin for using numpyro samplers with Bilby

bilby-numpyro is a sampler plugin for using numpyro samplers with Bilby likelihoods and priors. Any likelihood that uses only JAX JIT-compilable functions/classes works automatically.

Usage

The sampler should always be given as numpyro regardless of which sampler (e.g., HMC, NUTS) is actually being used. The sampler is specified with sampler_name and any sampler keyword arguments should be passed in the usual way to bilby.core.sampler.run_sampler for example

run_sampler(
    ...,
    sampler="numpyro",
    sampler_name="NUTS",
    num_warmup=500,
    num_samples=1000,
)

This has not been tested with numpyro parallelisation.

Limitations

The likelihood class you use should be JIT compilable with JAX. Generally, this will be the case if you use jax.numpy and jax.scipy instead of numpy/scipy.

Some Bilby priors have direct equivalents in numpyro and so we use those automatically. You will see logged warnings if a prior is not available and a Uniform prior over the same range will be used instead.

Metadata

Release files for bilby-numpyro 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bilby-numpyro 0.0.1
File Size Uploaded
bilby_numpyro-0.0.1.tar.gz 9.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bilby-numpyro 0.0.1
File Interpreter ABI Platform
bilby_numpyro-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 16.7 kB

Release files / bilby_numpyro-0.0.1.tar.gz

Download URL bilby_numpyro-0.0.1.tar.gz
Size 9.0 kB
Tags Source
SHA-256 checksum
How to use checksums
82dfe7b085c3b32374a76d13e1839b666ce6369e8a9138fc323e0497183b1af7
BLAKE2b-256 checksum
How to use checksums
fe86ff16d946a1b6570099f2c67ff9c3a0e8e7a0e50338f9448c560b3ee02e83
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2024.

Transparency log

Release files / bilby_numpyro-0.0.1-py3-none-any.whl

Download URL bilby_numpyro-0.0.1-py3-none-any.whl
Size 7.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
257180e8b7faa583371c467525d31769703ff6474b933065377d2372e407d753
BLAKE2b-256 checksum
How to use checksums
d7896df5ce87d0f689980bb9f349fd72e18bf94a70145439ffb26b4e578c0222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 21, 2024.

Transparency log

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page