Skip to main content
https://github.com/PFLeget/treegp/actions/workflows/test_treegp.yaml/badge.svg https://codecov.io/gh/PFLeget/treegp/branch/master/graph/badge.svg https://readthedocs.org/projects/treegp/badge/?version=latest https://img.shields.io/badge/astro--ph.IM-2103.09881-red https://img.shields.io/badge/DOI-10.1051%2F0004--6361%2F202140463-blue.svg

Overview

treegp is a python gaussian process code that perform 1D and 2D interpolation.

treegp has some special features compared to other available Gaussian Processes codes:

  • Hyperparameters estimation will scale in O(N log(N)) with the the 2-points correlation function estimation compared to O(N^3) with the classical maximum likelihood.

  • Gaussian process interpolation can be performed around a mean function

  • A tool is provided to compute the mean function (meanify)

  • The measured anisotropic 2D 2-points correlation function can be used directly as the kernel, without fitting any hyperparameters (optimizer="empirical-2pcf"), implementing Gomes et al. (2025). The other optimizers ("two-pcf", "anisotropic") implement Léget et al. (2021).

treegp was originally developed for Point Spread Function interpolation within Piff. There is a specific article that describes the math used in treegp in the context of modelling astrometric shifts of the Subaru Telescope due to atmospheric turbulences. This article can be found here.

Installation

The easiest way to install is usually:

pip install treegp

which will install the latest released version.

If you would instead like to install the development version, you can do so via:

git clone https://github.com/PFLeget/treegp.git
cd treegp/
python setup.py install

Dependencies

treegp has for now the following dependencies (see the quick installs below):

Python

treegp is regularly tested on Python 3.9, 3.10, 3.11, 3.12 and 3.13. It may work in other versions of Python (e.g. pypy), but these are not currently supported.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

treegp-1.5.0.tar.gz (55.2 kB view details)

Uploaded Source

File details

Details for the file treegp-1.5.0.tar.gz.

File metadata

  • Download URL: treegp-1.5.0.tar.gz
  • Upload date:
  • Size: 55.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for treegp-1.5.0.tar.gz
Algorithm Hash digest
SHA256 a2c8ebc31102c31876a1e1717ce4f3d7af60d3d8c1593ec4ab7dcd5adedd9157
MD5 379e809c95f28258556a6b9e51edbf34
BLAKE2b-256 2540579aac5e59bae2d98c8f49f887032f73097d4c64804a06c7de9eeee4e2af

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.5.0 This release

1 file

1.4.1

1 file

1.4.0

1 file

1.3.1

1 file

1.3.0

1 file

1.2.0

1 file

1.1.0

1 file

1.0.1

1 file

1.0.0

1 file

0.6.0

1 file

0.5.0

1 file

0.3.0

1 file

0.2.0

1 file

0.1.0

1 file

0.0.0

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