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.
Metadata
Release files for gpvecchia 0.0.4
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 | Actions |
|---|---|---|---|---|
| gpvecchia-0.0.4.tar.gz | 2.0 MB | With provenance | Details for gpvecchia-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpvecchia-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for gpvecchia-0.0.4-py3-none-any.whl |
Total release size: 2.0 MB
Release files / gpvecchia-0.0.4.tar.gz
| Download URL | gpvecchia-0.0.4.tar.gz |
|---|---|
| Size | 2.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b117a1767d4658f41e82d4c91cfce6a195ca5f14abb9da4e0cd434e2ab4b842
|
|
BLAKE2b-256 checksum How to use checksums |
bc03a22b4bfaa805717fa2c6d8dd8b97f0d251cfa8b7fd1697f7069ecb841df8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 17, 2026.
Transparency logRelease files / gpvecchia-0.0.4-py3-none-any.whl
| Download URL | gpvecchia-0.0.4-py3-none-any.whl |
|---|---|
| Size | 25.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
150ebdcac45fc26ee2cc1e0662ae3a96669c0333febad744eccc32c96a8675c2
|
|
BLAKE2b-256 checksum How to use checksums |
411466646a20623a04efc65785e89d9fc43e12fc8eb0e5bb26a68f905b03bf7d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 17, 2026.
Transparency logSecurity for gpvecchia 0.0.4
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 gpvecchia-0.0.4.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 17, 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.