Skip to main content

Spatial Debiased Whittle Likelihood

Image

Documentation Status .github/workflows/run_tests_on_push.yaml Pypi Binder DOI

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 overall structure of the package has also greatly improved thanks to suggestions made by reviewers @MarineChap and @weiji14 for publication in the Journal of Open Source Software.

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.

  1. Via the use of Poetry, by running the following command:

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

  1. You need an NVIDIA GPU

  2. You need to install the CUDA Toolkit. See for instance Cupy's installation page.

  3. 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.

Metadata

Release files for debiased-spatial-whittle 2.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for debiased-spatial-whittle 2.2.0
File Size Uploaded Provenance
debiased_spatial_whittle-2.2.0.tar.gz 74.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for debiased-spatial-whittle 2.2.0
File Interpreter ABI Platform
debiased_spatial_whittle-2.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 158.2 kB

Release files / debiased_spatial_whittle-2.2.0.tar.gz

Download URL debiased_spatial_whittle-2.2.0.tar.gz
Size 74.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ea712c0200713d98b9af69ece9fc02bd5af668afe5ded7f9a7e72b420bf1defe
BLAKE2b-256 checksum
How to use checksums
b759dda0d0f56b2aee1527cbce7895ae43d86cc24f9ba1e9e28dc57cbc4a49b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 4, 2026.

Transparency log

Release files / debiased_spatial_whittle-2.2.0-py3-none-any.whl

Download URL debiased_spatial_whittle-2.2.0-py3-none-any.whl
Size 83.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b35e561acba3d1ffddefccd760f812e4ce33ffe1b055a0bfd15647b95db5c795
BLAKE2b-256 checksum
How to use checksums
93777e0fd932d465b23246e9012d5d0c3c22a343a3000b6e805d786f3f5f8f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 Jun 4, 2026.

Transparency log

Security for debiased-spatial-whittle 2.2.0

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.

Select from 2 files

Attestation for debiased_spatial_whittle-2.2.0.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 Jun 4, 2026.

Transparency log

A 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.

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