Skip to main content

CI Pipeline for mlgw_bns Documentation Status PyPI version

Machine Learning for Gravitational Waves from Binary Neutron Star mergers

This package's purpose is to speed up the generation of template gravitational waveforms for binary neutron star mergers by training a machine learning model on a dataset of waveforms generated with some physically-motivated surrogate.

It is able to reconstruct them with mismatches lower than 1/10000, with as little as 1000 training waveforms; the accuracy then steadily drops as more training waveforms are used.

Currently, the only model used for training is TEOBResumS, but it is planned to introduce the possibility to use others.

The documentation can be found here.

Installation

To install the package, use

pip install mlgw-bns

For more details see the documentation.

Inner workings

The main steps taken by mlgw_bns to train on a dataset are as follows:

  • generate the dataset
  • decompose the Fourier transforms of the waveforms into phase and amplitude
  • downsample the dataset to a few thousand points
  • apply a PCA to reduce the dimensionality to a few tens of real numbers
  • train a neural network on the relation between the waveform parameters and the PCA components

In several of these steps data-driven optimizations are performed:

  • the points at which the waveforms are downsampled are not uniformly chosen: instead, a greedy downsampling algorithm determines them
  • the PCA is trained on a separate downsampled dataset, which is then thrown out
  • the hyperparameters for the neural network are optimized according to both the time taken for the training and the estimated reconstruction error

Release files for mlgw_bns 0.8.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mlgw_bns 0.8.2
File Size Uploaded
mlgw_bns-0.8.2.tar.gz 2.1 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for mlgw_bns 0.8.2
File Interpreter ABI Platform
mlgw_bns-0.8.2-py3-none-any.whl Python 3 none any Details

Total release size: 4.3 MB

Release files / mlgw_bns-0.8.2.tar.gz

Download URL mlgw_bns-0.8.2.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
6089d04814715efdcff9eebb340b858230f99e0a182aee842a1972a9f1f1bfb6
BLAKE2b-256 checksum
How to use checksums
2b5857a0f1084a53874fca94227b1947b9e7db36d5da00d989362c9aad026e33
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Linux/5.13.0-28-generic

Release files / mlgw_bns-0.8.2-py3-none-any.whl

Download URL mlgw_bns-0.8.2-py3-none-any.whl
Size 2.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
e6f47409f10c181972afb6530d490331f3b4250060f89494d7dffb98aef74dff
BLAKE2b-256 checksum
How to use checksums
f1a50f95e650976a2fb9b070b7577ef4b76526d7b2a80893f8d93e1e42727240
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.9.9 Linux/5.13.0-28-generic
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page