Skip to main content

Documentation status PyPI version Downloads

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

gpvecchia-0.0.4.tar.gz (2.0 MB view details)

Uploaded Source

Built Distribution

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

gpvecchia-0.0.4-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

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

Hashes for gpvecchia-0.0.4.tar.gz
Algorithm Hash digest
SHA256 5b117a1767d4658f41e82d4c91cfce6a195ca5f14abb9da4e0cd434e2ab4b842
MD5 d5497c2fd11520c29fff7f58615fa34a
BLAKE2b-256 bc03a22b4bfaa805717fa2c6d8dd8b97f0d251cfa8b7fd1697f7069ecb841df8

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpvecchia-0.0.4.tar.gz:

Publisher: publish.yml on TIDE-ITRH/gpvecchia

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

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

Hashes for gpvecchia-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 150ebdcac45fc26ee2cc1e0662ae3a96669c0333febad744eccc32c96a8675c2
MD5 6f59f2df7f703f851b749e81b77c7115
BLAKE2b-256 411466646a20623a04efc65785e89d9fc43e12fc8eb0e5bb26a68f905b03bf7d

See more details on using hashes here.

Provenance

The following attestation bundles were made for gpvecchia-0.0.4-py3-none-any.whl:

Publisher: publish.yml on TIDE-ITRH/gpvecchia

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

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

1 file

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