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
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.
Installation instructions
The package can be installed via one of the following methods.
-
Via the use of Poetry (https://python-poetry.org/), by running the following command:
poetry add debiased-spatial-whittle
-
Otherwise, you can directly install via pip:
pip install debiased-spatial-whittle
Development
Firstly, you need to install poetry. Then, git clone this repository, ad run the following command from the directory corresponding to the package.
poetry install
If you run into some issue regarding the Python version, you can run
poetry env use <path_to_python>
where <path_to_python> is the path to a Python version compatible with the requirements in pyproject.toml.
Unit tests
Unit tests are run with pytest. On Pull-requests, the unit tests will be run.
Documentation
The documentation is hosted on readthedocs. It is based on docstrings. Currently, it points to the joss_paper branch and is updated on any push to that branch.
Versioning
Currently, versioning is handled manuallyusing poetry, e.g.
poetry version patch
or
poetry version minor
When creating a release in Github, the version tag should be set to match the version in th pyproject.toml. Creating a release in Github will trigger a Github workflow that will publish to Pypi (see Pypi section).
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
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 debiased_spatial_whittle-1.1.1.tar.gz
.
File metadata
- Download URL: debiased_spatial_whittle-1.1.1.tar.gz
- Upload date:
- Size: 82.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69f62c958299cea99699967ed7d45e5fed4c68c0c777494a547cbc774f304cbe |
|
MD5 | 85d076cc3650f685171041e7328e7621 |
|
BLAKE2b-256 | 24adf1a020174d5f334f1f71596ff20e63f8501fac9688c55342be923295bf27 |
Provenance
The following attestation bundles were made for debiased_spatial_whittle-1.1.1.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-1.1.1.tar.gz
- Subject digest:
69f62c958299cea99699967ed7d45e5fed4c68c0c777494a547cbc774f304cbe
- Sigstore transparency entry: 186645377
- Sigstore integration time:
- Permalink:
arthurBarthe/debiased-spatial-whittle@65b0b1300b42813c9cc695630dc1ebb1020d6ef1
- Branch / Tag:
refs/tags/v1.1.1
- Owner: https://github.com/arthurBarthe
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi.yml@65b0b1300b42813c9cc695630dc1ebb1020d6ef1
- Trigger Event:
release
- Statement type:
File details
Details for the file debiased_spatial_whittle-1.1.1-py3-none-any.whl
.
File metadata
- Download URL: debiased_spatial_whittle-1.1.1-py3-none-any.whl
- Upload date:
- Size: 92.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13a5a92bd86a25273a63dd83ccc9574632fa16513ea310c19c512c7b53c3db47 |
|
MD5 | 0e8cefec6a8cbb44a48f8a76dffb7a40 |
|
BLAKE2b-256 | 49ee5dccda02e09093147661af11553bbc85928d7bba44ef99748992b1db0a8e |
Provenance
The following attestation bundles were made for debiased_spatial_whittle-1.1.1-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-1.1.1-py3-none-any.whl
- Subject digest:
13a5a92bd86a25273a63dd83ccc9574632fa16513ea310c19c512c7b53c3db47
- Sigstore transparency entry: 186645380
- Sigstore integration time:
- Permalink:
arthurBarthe/debiased-spatial-whittle@65b0b1300b42813c9cc695630dc1ebb1020d6ef1
- Branch / Tag:
refs/tags/v1.1.1
- Owner: https://github.com/arthurBarthe
- Access:
public
- Token Issuer:
https://token.actions.githubusercontent.com
- Runner Environment:
github-hosted
- Publication workflow:
pypi.yml@65b0b1300b42813c9cc695630dc1ebb1020d6ef1
- Trigger Event:
release
- Statement type: