Spatial Debiased Whittle likelihood for fast inference of spatio-temporal covariance models from gridded data
Project description
Spatial Debiased Whittle Likelihood
Introduction
This package implements the Spatial Debiased Whittle Likelihood (SDW) as presented in the article of the same name, by the following authors:
- Arthur P. Guillaumin
- Adam M. Sykulski
- Sofia C. Olhede
- Frederik J. Simons
Additionally, the following people have greatly contributed to further developments of the method and its implementation:
- Thomas Goodwin
- Olivia L. Walbert
The SDW extends ideas from the Whittle likelihood and Debiased Whittle Likelihood to random fields and spatio-temporal data. In particular, it directly addresses the bias issue of the Whittle likelihood for observation domains with dimension greater than 2. It also allows us to work with rectangular domains (i.e., rather than square), missing observations, and complex shapes of data.
The documentation is available here.
Installation instructions
CPU-only
The package can be installed via one of the following methods.
-
Via the use of Poetry, by running the following command:
poetry add debiased-spatial-whittle
-
Otherwise, you can directly install via pip:
pip install debiased-spatial-whittle
GPU
The Debiased Spatial Whittle likelihood relies on the Fast Fourier Transform (FFT) for computational efficiency. GPU implementations of the FFT provide additional computational efficiency (order x100) at almost no additional cost thanks to GPU implementations of the FFT algorithm.
If you want to install with GPU dependencies (Cupy and Pytorch):
-
You need an NVIDIA GPU
-
You need to install the CUDA Toolkit. See for instance Cupy's installation page.
-
You can install Cupy or pytorch yourself in your environment. Or you can specify an extra to poetry, e.g.
poetry add debiased-spatial-whittle -E gpu12
if you version of the CUDA toolkit is 12.* (use gpu11 if your version is 11.*)
One way to check your CUDA version is to run the following command in a terminal:
nvidia-smi
You can then switch to using e.g. Cupy instead of numpy as the backend via:
from debiased_spatial_whittle.backend import BackendManager
BackendManager.set_backend("cupy")
This should be run before any other import from the debiased_spatial_whittle package.
PyPI
The package is updated on PyPi automatically on creation of a new release in Github. Note that currently the version in pyproject.toml needs to be manually updated. This should be fixed by adding a step in the workflow used for publication to Pypi.
Project details
Release history Release notifications | RSS feed
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 debiased_spatial_whittle-2.1.3.tar.gz.
File metadata
- Download URL: debiased_spatial_whittle-2.1.3.tar.gz
- Upload date:
- Size: 73.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12726573e9636b6cd2957a9145f97fc354bac5eb7802e3af15ad80a89ca347f8
|
|
| MD5 |
a831883ab7a25d1c666fd46f192f9d53
|
|
| BLAKE2b-256 |
3210a707322a39eb95200761d1a6636ba75838a78318bf74c6df36681e9ec8cf
|
Provenance
The following attestation bundles were made for debiased_spatial_whittle-2.1.3.tar.gz:
Publisher:
pypi.yml on arthurBarthe/debiased-spatial-whittle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
debiased_spatial_whittle-2.1.3.tar.gz -
Subject digest:
12726573e9636b6cd2957a9145f97fc354bac5eb7802e3af15ad80a89ca347f8 - Sigstore transparency entry: 1074346064
- Sigstore integration time:
-
Permalink:
arthurBarthe/debiased-spatial-whittle@c528d7edb3e1385cfa7edc89883bbb435106fb92 -
Branch / Tag:
refs/tags/v2.1.4 - Owner: https://github.com/arthurBarthe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c528d7edb3e1385cfa7edc89883bbb435106fb92 -
Trigger Event:
release
-
Statement type:
File details
Details for the file debiased_spatial_whittle-2.1.3-py3-none-any.whl.
File metadata
- Download URL: debiased_spatial_whittle-2.1.3-py3-none-any.whl
- Upload date:
- Size: 81.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
21dc858d5b45b611257f59b458a414b66e496e856f841eba7f5de7bfe330043b
|
|
| MD5 |
13a681cfa2931a67577fd6bff0ca56cc
|
|
| BLAKE2b-256 |
6bd80e66079269c0911610d9df4325237edc0aee294fd3f98837a3f89b4183df
|
Provenance
The following attestation bundles were made for debiased_spatial_whittle-2.1.3-py3-none-any.whl:
Publisher:
pypi.yml on arthurBarthe/debiased-spatial-whittle
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
debiased_spatial_whittle-2.1.3-py3-none-any.whl -
Subject digest:
21dc858d5b45b611257f59b458a414b66e496e856f841eba7f5de7bfe330043b - Sigstore transparency entry: 1074346108
- Sigstore integration time:
-
Permalink:
arthurBarthe/debiased-spatial-whittle@c528d7edb3e1385cfa7edc89883bbb435106fb92 -
Branch / Tag:
refs/tags/v2.1.4 - Owner: https://github.com/arthurBarthe
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@c528d7edb3e1385cfa7edc89883bbb435106fb92 -
Trigger Event:
release
-
Statement type: