Skip to main content

pocomc plugin for bilby

Project description

DOI PyPI

pocomc-bilby

pocomc plugin for bilby.

This package provides a plugin for using pocomc with bilby via the sampler plugins interface. pocomc is Sequential Monte Carlo sampler that implements a specific flavour of SMC called Persistent Sampling. For more details, see the pocomc documentation.

Installation

Note: since pocomc depends on torch we recommend installing it first using the instructions on the PyTorch website.

pocomc-bilby is can be installed via pip:

pip install pococmc-bilby

Note: this plugin only supports pocomc>=1.2.6.

Usage

Once installed, pocomc can be used as you would any other sampler in bilby:

import bilby

# Define likelihood & priors as normal
priors = ...
likelihood = ...

bilby.run_sampler(
    sampler="pocomc",
    ...
)

pocomc has two different types of settings, those specified when initializing the sampler and those specified when calling the run method. When using pocomc via bilby both types of settings can be passed to run_sampler and these will automatically be passed to the correct method.

For details about the various settings, see the pocomc documentation.

This plugin is also compatible with bilby_pipe, including support for checkpointing.

Attribution & Citation

If you use pocomc-bilby in your own work please cite the DOI for this package, corresponding paper (to be added) and the citations for pocomc, see Attribution & Citation in the pocomc documentation

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

pocomc_bilby-0.1.0.tar.gz (12.5 kB view details)

Uploaded Source

Built Distribution

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

pocomc_bilby-0.1.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file pocomc_bilby-0.1.0.tar.gz.

File metadata

  • Download URL: pocomc_bilby-0.1.0.tar.gz
  • Upload date:
  • Size: 12.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pocomc_bilby-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9cdef40af533e3675fa6c96da0a21ce679278ca958fce88c7a9b6e93ca3c0163
MD5 80353a796ad7b2b804e5d3d20ff58a4e
BLAKE2b-256 21d9b9287c2a1e2938ce3ee6c66343c91fd2ae76ded4cdeba47b2deb513152c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for pocomc_bilby-0.1.0.tar.gz:

Publisher: publish.yml on mj-will/pocomc-bilby

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

File details

Details for the file pocomc_bilby-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: pocomc_bilby-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for pocomc_bilby-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d39a8dae2214b20798f2a23f2b0fdccc9b9fb3f663c5dad12333ba1525940543
MD5 bedd023fe09d8cc11dc34ddb7bbf31d9
BLAKE2b-256 96691b35f3a3d85e68635953e4700ce698c747f001c35a9e001f9cda9e85c60b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pocomc_bilby-0.1.0-py3-none-any.whl:

Publisher: publish.yml on mj-will/pocomc-bilby

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