Skip to main content

Gravitatioanl wave data analysis tool in Jax

Project description

Jim jim - A JAX-based gravitational-wave inference toolkit

Jim comprises a set of tools for estimating parameters of gravitational-wave sources thorugh Bayesian inference. At its core, Jim relies on the JAX-based sampler flowMC, which leverages normalizing flows to enhance the convergence of a gradient-based MCMC sampler.

Since its based on JAX, Jim can also leverage hardware acceleration to achieve significant speedups on GPUs. Jim also takes advantage of likelihood-heterodyining, (Cornish 2010, Cornish 2021) to compute the gravitational-wave likelihood more efficiently.

See the accompanying paper, Wong, Isi, Edwards (2023) for details.

[Documentatation and examples are a work in progress]

Installation

You may install the latest released version of Jim through pip by doing

pip install jimGW

You may install the bleeding edge version by cloning this repo, or doing

pip install git+https://github.com/kazewong/jim

If you would like to take advantage of CUDA, you will additionally need to install a specific version of JAX by doing

pip install --upgrade "jax[cuda]"==0.4.1 -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html

NOTE: Jim is only currently compatible with Python 3.10.

Performance

The performance of Jim will vary depending on the hardware available. Under optimal conditions, the CUDA installation can achieve parameter estimation in ~1 min on an Nvidia A100 GPU for a binary neutron star (see paper for details). If a GPU is not available, JAX will fall back on CPUs, and you will see a message like this on execution:

No GPU/TPU found, falling back to CPU.

Directory

Parameter estimation examples are in example/ParameterEstimation.

Attribution

Please cite the accompanying paper, Wong, Isi, Edwards (2023).

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

jimGW-0.1.1.tar.gz (14.2 kB view details)

Uploaded Source

Built Distribution

jimGW-0.1.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file jimGW-0.1.1.tar.gz.

File metadata

  • Download URL: jimGW-0.1.1.tar.gz
  • Upload date:
  • Size: 14.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.5

File hashes

Hashes for jimGW-0.1.1.tar.gz
Algorithm Hash digest
SHA256 186b26f5e9bfdd0798f09da94dfc1719d150cc253b6b061ffe5210f8f4d36907
MD5 f7215b64a5fd1060571cdc838622ec0d
BLAKE2b-256 2c80d1230e7a8b12013dd72f4afae155b7ed08124ca689f1282f69e03594737e

See more details on using hashes here.

File details

Details for the file jimGW-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: jimGW-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.5

File hashes

Hashes for jimGW-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 32bec5ffc060cf5e5e796fb367f831abed13d615a81b43eb7066a0edfa814c14
MD5 85b8cf7ea1f8bbaa20429dcacc68d949
BLAKE2b-256 22070b0fe0b6fd18aad4f8d98c3c1217a8f0f9edc4e49fed0ed3f05c8abbe143

See more details on using hashes here.

Supported by

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