Gaussian processes in JAX.
Project description
Quickstart | Install guide | Documentation | Slack Community
GPJax aims to provide a low-level interface to Gaussian process (GP) models in Jax, structured to give researchers maximum flexibility in extending the code to suit their own needs. The idea is that the code should be as close as possible to the maths we write on paper when working with GP models.
Package organisation
Contributions
We would be delighted to receive contributions from interested individuals and groups. To learn how you can get involved, please read our guide for contributing. If you have any questions, we encourage you to open an issue. For broader conversations, such as best GP fitting practices or questions about the mathematics of GPs, we invite you to open a discussion.
Another way you can contribute to GPJax is through issue triaging. This can include reproducing bug reports, asking for vital information such as version numbers and reproduction instructions, or identifying stale issues. If you would like to begin triaging issues, an easy way to get started is to subscribe to GPJax on CodeTriage.
As a contributor to GPJax, you are expected to abide by our code of conduct. If you feel that you have either experienced or witnessed behaviour that violates this standard, then we ask that you report any such behaviours through this form or reach out to one of the project's gardeners.
Feel free to join our Slack Channel, where we can discuss the development of GPJax and broader support for Gaussian process modelling.
We appreciate all the contributors to GPJax who have helped to shape GPJax into the package it is today.
Supported methods and interfaces
Notebook examples
- Conjugate Inference
- Classification
- Sparse Variational Inference
- Stochastic Variational Inference
- Laplace Approximation
- Inference on Non-Euclidean Spaces
- Inference on Graphs
- Heteroscedastic Inference
- Learning Gaussian Process Barycentres
- Deep Kernel Regression
- Poisson Regression
- Bayesian Optimisation
Guides for customisation
Conversion between .ipynb and .py
Above examples are stored in examples directory in the double
percent (py:percent) format. Checkout jupytext
using-cli for more
info.
- To convert
example.pytoexample.ipynb, run:
jupytext --to notebook example.py
- To convert
example.ipynbtoexample.py, run:
jupytext --to py:percent example.ipynb
Installation
Stable version
The latest stable version of GPJax can be installed from PyPI:
pip install gpjax
or from conda-forge:
# with Pixi
pixi add gpjax
# or with conda
conda install --channel conda-forge gpjax
Note
We recommend you check your installation version:
python -c 'import gpjax; print(gpjax.__version__)'
Development version
Warning
This version is possibly unstable and may contain bugs.
Note
We advise you create virtual environment before installing:
conda create -n gpjax_experimental python=3.11.0 conda activate gpjax_experimental
Clone a copy of the repository to your local machine and run the setup configuration in development mode.
git clone https://github.com/thomaspinder/GPJax.git
cd GPJax
uv venv
uv sync --extra dev
We recommend you check your installation passes the supplied unit tests:
uv run poe all-tests
Citing GPJax
If you use GPJax in your research, please cite our JOSS paper.
@article{Pinder2022,
doi = {10.21105/joss.04455},
url = {https://doi.org/10.21105/joss.04455},
year = {2022},
publisher = {The Open Journal},
volume = {7},
number = {75},
pages = {4455},
author = {Thomas Pinder and Daniel Dodd},
title = {GPJax: A Gaussian Process Framework in JAX},
journal = {Journal of Open Source Software}
}
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gpjax-0.13.6.tar.gz.
File metadata
- Download URL: gpjax-0.13.6.tar.gz
- Upload date:
- Size: 4.9 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c25ad05cebc2dfa403c88393074726f21a745602a796effeddffc8628e60536
|
|
| MD5 |
37235b5a8a5e6886108383a3354802b9
|
|
| BLAKE2b-256 |
22515fbb85c6e24250fbbe5bb059477ce234d36529d9e368b5527f6fd2c87c4d
|
Provenance
The following attestation bundles were made for gpjax-0.13.6.tar.gz:
Publisher:
release.yml on thomaspinder/GPJax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gpjax-0.13.6.tar.gz -
Subject digest:
4c25ad05cebc2dfa403c88393074726f21a745602a796effeddffc8628e60536 - Sigstore transparency entry: 929114622
- Sigstore integration time:
-
Permalink:
thomaspinder/GPJax@2349ce9ed37890a405b0dbdbdd883f92169a2921 -
Branch / Tag:
refs/tags/v0.13.6 - Owner: https://github.com/thomaspinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2349ce9ed37890a405b0dbdbdd883f92169a2921 -
Trigger Event:
push
-
Statement type:
File details
Details for the file gpjax-0.13.6-py3-none-any.whl.
File metadata
- Download URL: gpjax-0.13.6-py3-none-any.whl
- Upload date:
- Size: 93.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ad13298da1622a3bec690e79b3a5697683fc55d160332d99128b1b930635bd1
|
|
| MD5 |
0826e8a1ad5af070d469c30c321cd4af
|
|
| BLAKE2b-256 |
dcdb6f8a8901feeb04db2e41670e58eedac6db208317ba44d9e3337dfa63331f
|
Provenance
The following attestation bundles were made for gpjax-0.13.6-py3-none-any.whl:
Publisher:
release.yml on thomaspinder/GPJax
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gpjax-0.13.6-py3-none-any.whl -
Subject digest:
1ad13298da1622a3bec690e79b3a5697683fc55d160332d99128b1b930635bd1 - Sigstore transparency entry: 929114624
- Sigstore integration time:
-
Permalink:
thomaspinder/GPJax@2349ce9ed37890a405b0dbdbdd883f92169a2921 -
Branch / Tag:
refs/tags/v0.13.6 - Owner: https://github.com/thomaspinder
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2349ce9ed37890a405b0dbdbdd883f92169a2921 -
Trigger Event:
push
-
Statement type: