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):
libraries listed in the requirements file
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.
Metadata
Release files for treegp 1.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| treegp-1.5.0.tar.gz | 55.2 kB | Without provenance | Details for treegp-1.5.0.tar.gz |
Release files / treegp-1.5.0.tar.gz
| Download URL | treegp-1.5.0.tar.gz |
|---|---|
| Size | 55.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2c8ebc31102c31876a1e1717ce4f3d7af60d3d8c1593ec4ab7dcd5adedd9157
|
|
BLAKE2b-256 checksum How to use checksums |
2540579aac5e59bae2d98c8f49f887032f73097d4c64804a06c7de9eeee4e2af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.5
|
Security for treegp 1.5.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.