https://github.com/jcbayley/vitamin_c

This will be the first official public release of the VItamin code base. VItamin is a python package for producing fast gravitational wave posterior samples.

https://github.com/jcbayley/vitamin_c

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
    Links to: arxiv.org
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (14.1%) to scientific vocabulary
Last synced: 5 months ago · JSON representation

Repository

This will be the first official public release of the VItamin code base. VItamin is a python package for producing fast gravitational wave posterior samples.

Basic Info
  • Host: GitHub
  • Owner: jcbayley
  • License: gpl-3.0
  • Language: Python
  • Default Branch: master
  • Homepage:
  • Size: 3.44 MB
Statistics
  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • Open Issues: 0
  • Releases: 0
Fork of hagabbar/vitamin_c
Created almost 5 years ago · Last pushed almost 5 years ago

https://github.com/jcbayley/vitamin_c/blob/master/

[![PyPI version](https://badge.fury.io/py/vitamin-b.svg)](https://badge.fury.io/py/vitamin-b)
![License](https://img.shields.io/github/license/hagabbar/vitamin_b)
![GitHub Stars](https://img.shields.io/github/stars/hagabbar/vitamin_b?style=social)
![Twitter](https://img.shields.io/twitter/follow/gw_hunter?style=social)

# [VItamin_C: A Machine Learning Library for Fast Gravitational Wave Posterior Generation](https://arxiv.org/abs/1909.06296)
:star: Star us on GitHub  it helps!

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

This [repository](https://github.com/hagabbar/vitamin_b) is the official implementation of [Bayesian Parameter Estimation using Conditional Variational Autoencoders for Gravitational Wave Astronomy](https://arxiv.org/abs/1909.06296).

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

Official Documentation can be found at [https://hagabbar.github.io/vitamin_c](https://hagabbar.github.io/vitamin_c).

Check out our Blog (to be made), [Paper](https://arxiv.org/abs/1909.06296) and [Interactive Demo](https://colab.research.google.com/github/hagabbar/OzGrav_demo/blob/master/OzGrav_VItamin_demo.ipynb).

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`

Install VItamin using pip:
```
pip install vitamin-b
```

## Training

To train an example model from the paper, try out the [demo](https://colab.research.google.com/github/hagabbar/OzGrav_demo/blob/master/OzGrav_VItamin_demo.ipynb).

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:
![](images/network_setup.png)

We track the performance of the model during training via loss curves:
![](images/inv_losses_log.png)

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

Posterior example:
![](images/corner_testcase0.png)

KL-Divergence between posteriors:
![](images/hist-kl.png)

PP Tests:
![](images/latest_pp_plot.png)

Owner

  • Login: jcbayley
  • Kind: user

GitHub Events

Total
Last Year