Skip to main content

Gravitatioanl wave data analysis tool in Jax

Project description

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

doc

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.

[!WARNING]
Jim is under heavy development, so API is constantly changing. Use at your own risk! One way to mitigate this inconvience is to make your own fork over a version for now. We expect to hit a stable version this year. Stay tuned.

[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[cuda12_pip]" -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.2.0.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

jimgw-0.2.0-py3-none-any.whl (38.4 kB view details)

Uploaded Python 3

File details

Details for the file jimgw-0.2.0.tar.gz.

File metadata

  • Download URL: jimgw-0.2.0.tar.gz
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for jimgw-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5af96021305fd223388d33330b117027be07b86d21221a1e45bc207451cd149d
MD5 412360bd3156abc8b7dac0f141740268
BLAKE2b-256 231789a73666394ef3703b4216bd7e6266e032cc250675267a21371cf40efe45

See more details on using hashes here.

File details

Details for the file jimgw-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: jimgw-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 38.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for jimgw-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 01464a6e636f4d35ffb6f8b80aabc58d587ca2d82f02cb460188ea867ee0700d
MD5 bbb0099817fd6fcaeb1c832995c14e5c
BLAKE2b-256 ea58e189f8517b2f8020cfe96fbdbccb0703f42bd86fc0706cea4c138bcdf319

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