Skip to main content

Tools for training torch models on gravitational wave data

Project description

ML4GW

PyPI - Version PyPI - Python Version GitHub License Test status codecov DOI

Torch utilities for training neural networks in gravitational wave physics applications.

Documentation

Please visit our documentation page to see descriptions and examples of the functions and modules available in ml4gw. We also have an interactive Jupyter notebook demonstrating much of the core functionality available here. To run this notebook, download it from the above link and follow the instructions within it to install the required packages. See also the documentation page for the tutorial to look through it without running the code.

Installation

Pip installation

You can install ml4gw with pip:

pip install ml4gw

To build with a specific version of PyTorch/CUDA, please see the PyTorch installation instructions here to see how to specify the desired torch version and --extra-index-url flag. For example, to install with torch 2.5.1 and CUDA 11.8 support, you would run

pip install ml4gw torch==2.5.1--extra-index-url=https://download.pytorch.org/whl/cu118

uv installation

If you want to develop ml4gw, you can use uv to install the project in editable mode. For example, after cloning the repository, create a virtualenv using

uv venv --python=3.11

Then sync the dependencies from the uv lock file using

uv sync --all-extras

Code changes can be tested using

uv run pytest

See contribution guide for more details.

Contributing

If you come across errors in the code, have difficulties using this software, or simply find that the current version doesn't cover your use case, please file an issue on our GitHub page, and we'll be happy to offer support. If you want to add feature, please refer to the contribution guide for more details. We also strongly encourage ML users in the GW physics space to try their hand at working on these issues and joining on as collaborators! For more information about how to get involved, feel free to reach out to ml4gw@ligo.mit.edu. By bringing in new users with new use cases, we hope to develop this library into a truly general-purpose tool that makes deep learning more accessible for gravitational wave physicists everywhere.

Funding

We are grateful for the support of the U.S. National Science Foundation (NSF) Harnessing the Data Revolution (HDR) Institute for Accelerating AI Algorithms for Data Driven Discovery (A3D3) under Cooperative Agreement No. PHY-2117997.

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

ml4gw-0.8.2.tar.gz (122.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ml4gw-0.8.2-py3-none-any.whl (133.3 kB view details)

Uploaded Python 3

File details

Details for the file ml4gw-0.8.2.tar.gz.

File metadata

  • Download URL: ml4gw-0.8.2.tar.gz
  • Upload date:
  • Size: 122.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ml4gw-0.8.2.tar.gz
Algorithm Hash digest
SHA256 1fa8c30fa9abb8c9c74ecb9483529bedaf1e7426166afa8c38eebf494ad194bd
MD5 f73e1995aabf7ceef36972b24a2ccb4b
BLAKE2b-256 212d8a4363ebb9afc06cef2c895209abd2acf016de60e3f9207c9b82c26f5d86

See more details on using hashes here.

File details

Details for the file ml4gw-0.8.2-py3-none-any.whl.

File metadata

  • Download URL: ml4gw-0.8.2-py3-none-any.whl
  • Upload date:
  • Size: 133.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for ml4gw-0.8.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae2db07bc992bd4b88babb2c600245ea28b1e37e794d047d5149bc5f804ad90b
MD5 6b30f95c783917e1d7f220ddc3403c6d
BLAKE2b-256 02e1d2cd83d446017006b5f86de110c19b98898e0bccaa8329ed26144a176303

See more details on using hashes here.

Supported by

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