A Python package for gravitational wave analysis using neural networks
Project description
SageNetGW
SageNetGW is a Python package for generating GW power-frequency curves. See https://github.com/YifangLuo/SageNet and https://github.com/bohuarolandli/stiffGWpy
Installation
pip install sagenetgw
Usage Example
from sagenetgw.classes import GWPredictor
import numpy as np
from matplotlib import pyplot as plt
predictor = GWPredictor(
model_type='Transformer',
device="cpu"
)
prediction = predictor.predict({
"r":3.9585109e-05,
"n_t":1.0116972,
"kappa10":110.42477,
"T_re":0.17453859,
"DN_re":39.366618,
"Omega_bh2":0.0223828,
"Omega_ch2":0.1201075,
"H0":67.32117,
"A_s":2.100549e-9
})
pred_coords = np.column_stack((prediction['f'], prediction['log10OmegaGW']))
plt.plot(pred_coords[:, 0], pred_coords[:, 1], '--', color="royalblue", marker='.')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sagenetgw-0.1.7.tar.gz
(27.5 MB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
sagenetgw-0.1.7-py3-none-any.whl
(21.2 MB
view details)
File details
Details for the file sagenetgw-0.1.7.tar.gz.
File metadata
- Download URL: sagenetgw-0.1.7.tar.gz
- Upload date:
- Size: 27.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4f8d20737f0855be486655f95dfc3fea3acf15d2d8da27afe99e9914b774cb77
|
|
| MD5 |
659cce0328430314c144acfdff66ad03
|
|
| BLAKE2b-256 |
d17169969064b972d3a6b4de5a30e471fe5b3a6effe191f6e51ed5f7366ee876
|
File details
Details for the file sagenetgw-0.1.7-py3-none-any.whl.
File metadata
- Download URL: sagenetgw-0.1.7-py3-none-any.whl
- Upload date:
- Size: 21.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56405030c7f712f95f6d26833db68229d62b2342306d4a1b2e0c2ec1a60c6efe
|
|
| MD5 |
930d6cfc8e3e8f63d2b34b5bcdcda84f
|
|
| BLAKE2b-256 |
bbffcedc35e320bdbd0bfd89f5c7fbde578a79c74d78b7ea81ac1187d1f4ccfc
|