Skip to main content

A package for efficient loglikelihood evaluation with structured covariance matrices

Project description

tripy

A package for efficient[^1] likelihood evaluation and sampling for Multivariate Normal distributions where the covariance matrix:

  • Is Separable, i.e. can be expressed as the Kronecker product of the covariance over different dimensions (e.g. space and time);
  • May have Exponential correlation (i.e. (block-) tridiagonal precision matrix) in one or more dimensions;
  • Is polluted with uncorrelated scalar or vector noise.

[^1]: In the general case, exact likelihood evaluation has O(N3) computational complexity and O(N2) memory requirements. The term "efficient" is used here to refer to the reduction of complexity and memory usage by utilizing the sparsity and Kronecker product structure of the covariance matrix.

Structure

base: Base class for problem formulation, taken from taralli. Likely to be removed in a future update.

utils: Utility functions for efficient linear algebra invovling tridiagonal and Kronecker product matrices.

loglikelihood: Functions for efficient loglikelihood evaluation.

kernels: Formulation of commonly used kernels.

sampling: Functions for efficient sampling.

TODOs

  • Validation of all functions against reference implementations.
  • Documentation, including examples and timing tests.
  • Unit and integration testing.
  • Improve this README by including mathematical notation and references.

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

tri-py-0.3.1.tar.gz (35.3 kB view details)

Uploaded Source

Built Distribution

tri_py-0.3.1-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

Details for the file tri-py-0.3.1.tar.gz.

File metadata

  • Download URL: tri-py-0.3.1.tar.gz
  • Upload date:
  • Size: 35.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.6

File hashes

Hashes for tri-py-0.3.1.tar.gz
Algorithm Hash digest
SHA256 32f8919c77ab43a61b7c93e59d3ac5f997661e95e268a7a1006e1c8cc1d4c985
MD5 9ed1b1c13b48906dee59d794bdf2b121
BLAKE2b-256 136c4639d178859aa428d073d6d05d60b26d94ae9fbc02fcc5a966e15df20694

See more details on using hashes here.

File details

Details for the file tri_py-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: tri_py-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 31.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.6

File hashes

Hashes for tri_py-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3063700adea431af3840905ebb4143957d07ecc8d645a07e54afc433e7c2ed6
MD5 cd7273e943ddc6e61e0d1d07945bd95a
BLAKE2b-256 0f20a1d4b0036d346a76a5f0856662fb0332cfb523f36ac59c6449bdd25c82d7

See more details on using hashes here.

Supported by

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