Skip to main content

Coverage Status PyPI version arXiv

SGVB PSD Estimator

This repository contains the code for the papers

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/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sgvb_psd-2.0.0.tar.gz (15.7 MB view details)

Uploaded Source

Built Distribution

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

sgvb_psd-2.0.0-py3-none-any.whl (49.1 kB view details)

Uploaded Python 3

File details

Details for the file sgvb_psd-2.0.0.tar.gz.

File metadata

  • Download URL: sgvb_psd-2.0.0.tar.gz
  • Upload date:
  • Size: 15.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sgvb_psd-2.0.0.tar.gz
Algorithm Hash digest
SHA256 ffcd86a4029a0b2fa5df8b5d946cdcd613a7a66dad2ac5258ed404f3d9132672
MD5 0e52f64b17cd5cc42c2d83e20a511f44
BLAKE2b-256 2cb87fa7be59550d18792ae575fd2af42fa86701118ba2a285f11d7eccf8a21c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sgvb_psd-2.0.0.tar.gz:

Publisher: publish.yml on nz-gravity/sgvb_psd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sgvb_psd-2.0.0-py3-none-any.whl.

File metadata

  • Download URL: sgvb_psd-2.0.0-py3-none-any.whl
  • Upload date:
  • Size: 49.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for sgvb_psd-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 437b26c1399785459ced77fef57396b2ccd2df92f7397d80613971bc093686e8
MD5 12bd7f3638cdb4b9a488a2ff76573d46
BLAKE2b-256 fae590e20e6c4e24bc630f7b87a594abba32a0ab835b668cf4a01ad7d5dc647c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sgvb_psd-2.0.0-py3-none-any.whl:

Publisher: publish.yml on nz-gravity/sgvb_psd

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 files

0.0.9

2 files

0.0.8

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

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