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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bilby_numpyro-0.0.1.tar.gz | 9.0 kB | With provenance | Details for bilby_numpyro-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bilby_numpyro-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for bilby_numpyro-0.0.1-py3-none-any.whl |
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 logRelease 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 logSecurity for bilby-numpyro 0.0.1
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for bilby_numpyro-0.0.1.tar.gz
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 logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.