Skip to main content

Spatial Debiased Whittle likelihood for fast inference of spatio-temporal covariance models from gridded data

Project description

Spatial Debiased Whittle Likelihood

Image

Documentation Status .github/workflows/run_tests_on_push.yaml Pypi

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.

  1. Via the use of Poetry (https://python-poetry.org/), by running the following command:

    poetry add debiased-spatial-whittle
    
  2. 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

debiased_spatial_whittle-1.0.0.tar.gz (73.7 kB view details)

Uploaded Source

Built Distribution

debiased_spatial_whittle-1.0.0-py3-none-any.whl (81.9 kB view details)

Uploaded Python 3

File details

Details for the file debiased_spatial_whittle-1.0.0.tar.gz.

File metadata

  • Download URL: debiased_spatial_whittle-1.0.0.tar.gz
  • Upload date:
  • Size: 73.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for debiased_spatial_whittle-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1d7c789f3617ec8d23fe2bddb1d91efd74844166f40824a0e5533a979d4b5f6b
MD5 4fecd6e45f2ed34fd8aea5d82b16369f
BLAKE2b-256 a45edbc21953fe3d2a7f46b861826a709207def57e4494ba964f7805e6792bc6

See more details on using hashes here.

Provenance

The following attestation bundles were made for debiased_spatial_whittle-1.0.0.tar.gz:

Publisher: pypi.yml on arthurBarthe/debiased-spatial-whittle

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

File details

Details for the file debiased_spatial_whittle-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for debiased_spatial_whittle-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 140df4fbabb206f5b77e7054721b121e5bdaf966395b2c699a3c2a3f1c04a566
MD5 d9946ad7c8c7c6a0dcdf6b7b401f73da
BLAKE2b-256 4f98423e6e91e95f020f7070b70ace92d0e6a5cadf25472675b0d9bc8dbc6b56

See more details on using hashes here.

Provenance

The following attestation bundles were made for debiased_spatial_whittle-1.0.0-py3-none-any.whl:

Publisher: pypi.yml on arthurBarthe/debiased-spatial-whittle

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page