Installation#

skgp needs Python 3.12 or newer. Installing it also installs everything it needs to fit a model, including JAX, GPJax and Polars.

pip install skgp
uv add skgp

To check which version you have:

python -c "from importlib.metadata import version; print(version('skgp'))"

pandas and pandera#

skgp reads Polars dataframes without anything else installed. To pass pandas dataframes, install pandas too; skgp then returns pandas dataframes for them.

pip install pandas

To check your data with your own schema (the schema= setting), use any object with a .validate(frame) method. A pandera schema is one; skgp does not depend on pandera, so install it yourself if you want it:

pip install "pandera[polars]"

GPUs#

skgp fits on the CPU unless JAX is installed with support for your GPU. To fit on a GPU, install that version of JAX as the JAX installation guide describes. skgp then uses the GPU without any change to your code.

Development version#

skgp’s code is in the skgp/ folder of the GPJax repository. To work on skgp itself, clone that repository and install skgp with uv:

git clone https://github.com/QuantClimate/GPJax.git
cd GPJax/skgp
uv sync --package skgp
uv run --package skgp pytest -m ""

The last command runs the full test suite, including the slow tests that plain uv run pytest skips.