Skip to main content

A user-friendly machine learning Bayesian inference library

Project description

PyPI version License GitHub Stars Twitter

VItamin_B: A Machine Learning Library for Fast Gravitational Wave Posterior Generation

:star: Star us on GitHub it helps!

Welcome to VItamin_B, a python toolkit for producing fast gravitational wave posterior samples.

This repository is the official implementation of Bayesian Parameter Estimation using Conditional Variational Autoencoders for Gravitational Wave Astronomy.

Hunter Gabbard, Chris Messenger, Ik Siong Heng, Francesco Tonlini, Roderick Murray-Smith

Official Documentation can be found at https://hagabbar.github.io/vitamin_b.

Check out our Blog (to be made), Paper and Interactive Demo.

Note: This repository is a work in progress. No official release of code just yet.

Requirements

VItamin requires python3.6. You may use python3.6 by initializing a virtual environment.

virtualenv -p python3.6 myenv
source myenv/bin/activate
pip install --upgrade pip

Optionally, install basemap and geos in order to produce sky plots of results.

For installing basemap:

  • Install geos-3.3.3 from source
  • Once geos is installed, install basemap using pip install git+https://github.com/matplotlib/basemap.git

For other required packages:

pip install -r requirements.txt

Install VItamin using pip:

pip install vitamin-b

Training

To train an example model from the paper, try out the demo.

Full model definitions are given in models directory. Data is generated from gen_benchmark_pe.py.

Results

We train using a network derived from first principals:

We track the performance of the model during training via loss curves:

Finally, we produce posteriors after training and other diagnostic tests comparing our approach with 4 other independent methods:

Posterior example:

KL-Divergence between posteriors:

PP Tests:

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

vitamin_b-0.2.6.tar.gz (59.8 kB view details)

Uploaded Source

File details

Details for the file vitamin_b-0.2.6.tar.gz.

File metadata

  • Download URL: vitamin_b-0.2.6.tar.gz
  • Upload date:
  • Size: 59.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.8

File hashes

Hashes for vitamin_b-0.2.6.tar.gz
Algorithm Hash digest
SHA256 92824f168982f266b77370b188c1118c972be86da1cc7b7228c53b3c0d1bd5d4
MD5 7131e2deeb5f330f5586142e834ab78e
BLAKE2b-256 a5c04b10e75ae0a1cfb47521bbc79cc1e6a409e35678416f07a944cdb847405f

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