SGVB PSD Estimator
This repository contains the code for the papers
- "Variational inference for correlated gravitational wave detector network noise" by Jianan Liu et al. 2024
- "Variational Bayesian Inference for the Spectral Structure of LISA Noise" (arXiv link to be added)
Documentation is available at https://nz-gravity.github.io/sgvb_psd/
Inference modes
Version 2.0.0 keeps the original non-eigenbasis joint SGVB method as the default and adds joint and factorized eigenbasis methods.
from sgvb_psd.psd_estimator import PSDEstimator
# Original joint SGVB with the blocked Whittle likelihood (default)
legacy = PSDEstimator(x=data)
# Joint SGVB with the blocked eigenbasis likelihood
eigen_joint = PSDEstimator(
x=data,
use_eigenbasis=True,
posterior_mode="joint",
)
# Factorized (componentwise) SGVB with the blocked eigenbasis likelihood
eigen_factorized = PSDEstimator(
x=data,
use_eigenbasis=True,
posterior_mode="factorized",
)
Development
Install in editable mode with dev dependencies
pip install -e ".[dev]"
pre-commit install
Ensure unit tests are passing locally and on the CI!
pytest tests/
Metadata
Release files for sgvb-psd 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| sgvb_psd-2.0.0.tar.gz | 15.7 MB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sgvb_psd-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.7 MB
Release files / sgvb_psd-2.0.0.tar.gz
| Download URL | sgvb_psd-2.0.0.tar.gz |
|---|---|
| Size | 15.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffcd86a4029a0b2fa5df8b5d946cdcd613a7a66dad2ac5258ed404f3d9132672
|
|
BLAKE2b-256 checksum How to use checksums |
2cb87fa7be59550d18792ae575fd2af42fa86701118ba2a285f11d7eccf8a21c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logRelease files / sgvb_psd-2.0.0-py3-none-any.whl
| Download URL | sgvb_psd-2.0.0-py3-none-any.whl |
|---|---|
| Size | 49.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
437b26c1399785459ced77fef57396b2ccd2df92f7397d80613971bc093686e8
|
|
BLAKE2b-256 checksum How to use checksums |
fae590e20e6c4e24bc630f7b87a594abba32a0ab835b668cf4a01ad7d5dc647c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.0.1 CPython/3.12.8
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logSecurity for sgvb-psd 2.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for sgvb_psd-2.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.