gpvecchia
Vecchia approximation routines for Gaussian Process and Data Assimilation. This code is a lightweight adaption of code from this package.
Please see the examples for particular use cases.
Documentation
Documentation is available on read the docs.
Installation
pip
pip install gpvecchia
To install a local development version
pip install -e ./
To install latest from github
pip install git+https://github.com/tide-itrh/gpvecchia.git
Features
- Vecchia-approximated Gaussian Process likelihood, prediction, prior/posterior sampling and conditional sampling, scaling to large datasets by conditioning each point on a small set of nearest neighbours instead of the full covariance matrix.
- A small library of covariance kernels (Matern 1/2, 3/2, 5/2, squared-exponential, cosine) in
gpvecchia.cov, plus anisotropic coordinate scaling and rotation. - Numba-jitted core routines, parallelised across CPU cores.
Quick Usage
import numpy as np
from gpvecchia import GPtideVecchia
from gpvecchia.cov import matern32
# Training data locations and observed values
xd = np.linspace(0, 100, 1000)[:, None]
yd = np.sin(xd[:, 0] / 5) + 0.1 * np.random.randn(1000)
# covparams = (marginal std dev, length scale)
covparams = (1.0, 5.0)
noise = 0.1
GP = GPtideVecchia(
xd, xd, noise, matern32, covparams,
order_func=np.random.permutation, order_params=len(xd),
)
mean, std = GP(yd)
See the examples for anisotropic/scaled kernels, MLE and MCMC parameter estimation, and conditional sampling.
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
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
File details
Details for the file gpvecchia-0.0.4.tar.gz.
File metadata
- Download URL: gpvecchia-0.0.4.tar.gz
- Upload date:
- Size: 2.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b117a1767d4658f41e82d4c91cfce6a195ca5f14abb9da4e0cd434e2ab4b842
|
|
| MD5 |
d5497c2fd11520c29fff7f58615fa34a
|
|
| BLAKE2b-256 |
bc03a22b4bfaa805717fa2c6d8dd8b97f0d251cfa8b7fd1697f7069ecb841df8
|
Provenance
The following attestation bundles were made for gpvecchia-0.0.4.tar.gz:
Publisher:
publish.yml on TIDE-ITRH/gpvecchia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gpvecchia-0.0.4.tar.gz -
Subject digest:
5b117a1767d4658f41e82d4c91cfce6a195ca5f14abb9da4e0cd434e2ab4b842 - Sigstore transparency entry: 2496928527
- Sigstore integration time:
-
Permalink:
TIDE-ITRH/gpvecchia@4b5f2e0e36c1bf960c191db0f369ebcbd75ff452 -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/TIDE-ITRH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4b5f2e0e36c1bf960c191db0f369ebcbd75ff452 -
Trigger Event:
release
-
Statement type:
File details
Details for the file gpvecchia-0.0.4-py3-none-any.whl.
File metadata
- Download URL: gpvecchia-0.0.4-py3-none-any.whl
- Upload date:
- Size: 25.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
150ebdcac45fc26ee2cc1e0662ae3a96669c0333febad744eccc32c96a8675c2
|
|
| MD5 |
6f59f2df7f703f851b749e81b77c7115
|
|
| BLAKE2b-256 |
411466646a20623a04efc65785e89d9fc43e12fc8eb0e5bb26a68f905b03bf7d
|
Provenance
The following attestation bundles were made for gpvecchia-0.0.4-py3-none-any.whl:
Publisher:
publish.yml on TIDE-ITRH/gpvecchia
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gpvecchia-0.0.4-py3-none-any.whl -
Subject digest:
150ebdcac45fc26ee2cc1e0662ae3a96669c0333febad744eccc32c96a8675c2 - Sigstore transparency entry: 2496928531
- Sigstore integration time:
-
Permalink:
TIDE-ITRH/gpvecchia@4b5f2e0e36c1bf960c191db0f369ebcbd75ff452 -
Branch / Tag:
refs/tags/v0.0.4 - Owner: https://github.com/TIDE-ITRH
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4b5f2e0e36c1bf960c191db0f369ebcbd75ff452 -
Trigger Event:
release
-
Statement type: