ML4GW
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 any of the maintainers listed in the pyproject.toml. 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.
Release files for ml4gw 0.8.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ml4gw-0.8.4.tar.gz | 131.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ml4gw-0.8.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 275.0 kB
Release files / ml4gw-0.8.4.tar.gz
| Download URL | ml4gw-0.8.4.tar.gz |
|---|---|
| Size | 131.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3a801759d38a4aaab64030a810505a72ba73acfb0a5f286b2bda534cc23e47a8
|
|
BLAKE2b-256 checksum How to use checksums |
0f518a4f2c8061fb1dfa9a8bc6cbb3d0f79ddfa10121eb8e1f6ee910ba29ed7e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.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}
|
Release files / ml4gw-0.8.4-py3-none-any.whl
| Download URL | ml4gw-0.8.4-py3-none-any.whl |
|---|---|
| Size | 143.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bac66cbed02b2082ad1c2d845a47bedf67cfb8cce0928d2157658e8788eb7bb3
|
|
BLAKE2b-256 checksum How to use checksums |
cecef65f38f5db0a37160c1e171a0471b61727709e4008f69879991d41026239
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.12.19 {"installer":{"name":"uv","version":"0.12.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}
|