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.
Usage
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
Built Distribution
File details
Details for the file tri-py-0.8.0.tar.gz
.
File metadata
- Download URL: tri-py-0.8.0.tar.gz
- Upload date:
- Size: 259.7 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64705cf23013f9b79a615c062b533c809edb05a3eb34468311d50f865d068dd0 |
|
MD5 | 3fb9e438b121e499c3a027f2c4b35177 |
|
BLAKE2b-256 | 973ffcda5fe6caccfd67ee4da602ec952ec0ec84bca799e7aafb06633d107a58 |
File details
Details for the file tri_py-0.8.0-py3-none-any.whl
.
File metadata
- Download URL: tri_py-0.8.0-py3-none-any.whl
- Upload date:
- Size: 36.5 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf9541f6e8ef44c69195e086dad6bdb58b04068080f2d06e4abefef4803b63e0 |
|
MD5 | 157be9763216782abc4d41fa88bdc52f |
|
BLAKE2b-256 | febb60888b693e7811bd5b92e55fd4431078f7310d7927a73750aa055c6be3d0 |