Skip to main content

GPBoost icon

GPBoost Python Package

License

This is the Python package implementation of the GPBoost library. See https://github.com/fabsig/GPBoost for more information on the modeling background and the software implementation.

Table of Contents

Examples and documentation

Installation

Before you install

Installation from PyPI using precompiled binaries

pip install gpboost -U

Requirements

  • For Windows users, VC runtime is needed if Visual Studio (2015 or newer) is not installed.

  • For Linux users, glibc >= 2.14 is required.

    • If you get an error message version `GLIBC_2.27' not found, you need to install from source.

    • In rare cases, when you get the OSError: libgomp.so.1: cannot open shared object file: No such file or directory error when importing GPBoost, you need to install the OpenMP runtime library separately (use your package manager and search for lib[g|i]omp for doing this).

  • For macOS users:

    • The library file in distribution wheels is built by the Apple Clang compiler. You need to install the OpenMP library. You can install the OpenMP library by the following command: brew install libomp.

    • If you have an arm64 Apple silicon processor (e.g., M1 or M2) and experience problems, try the following steps:

      • uninstall homebrew (in case you have migrated from an older non-arm64 Mac)
      • install homebrew (to make sure that you have an arm64 version of libomp)
      • install OpenMP (brew install libomp)
      • remove existing python environments and install Miniforge (brew install miniforge and conda init "$(basename "${SHELL}")")

Installation from source

Installation from source can be either done from PyPI or GitHub.

Requirements for installation from source

  • Installation from source requires that you have installed CMake.

  • For Linux users, glibc >= 2.14 is required.

    • In rare cases, you may need to install the OpenMP runtime library separately (use your package manager and search for lib[g|i]omp for doing this).
  • For macOS users, you can perform installation either with Apple Clang or gcc.

    • In case you prefer Apple Clang, you should install OpenMP (details for installation can be found in the Installation Guide) first and CMake version 3.16 or higher is required. Only Apple Clang version 8.1 or higher is supported.

    • In case you prefer gcc, you need to install it (details for installation can be found in the Installation Guide) and specify compilers by running export CXX=g++-7 CC=gcc-7 (replace "7" with the version of gcc installed on your machine) first.

  • For Windows users, Visual Studio (or VS Build Tools) is needed.

Installation from source from PyPI

pip install --no-binary :all: gpboost
Build with MinGW-w64 on Windows
set GPBOOST_MINGW=1
pip install --no-binary :all: gpboost

(in PowerShell, use $env:GPBOOST_MINGW = "1" instead of set GPBOOST_MINGW=1)

Installation from source from GitHub

git clone --recursive https://github.com/fabsig/GPBoost.git
cd GPBoost/python-package
# export CXX=g++-7 CC=gcc-7  # macOS users, if you decided to compile with gcc, don't forget to specify compilers (replace "7" with version of gcc installed on your machine)
python -m pip install .
Build with MinGW-w64 on Windows
set GPBOOST_MINGW=1
python -m pip install .

(in PowerShell, use $env:GPBOOST_MINGW = "1" instead of set GPBOOST_MINGW=1)

Build options

Build options are set via environment variables of the form GPBOOST_<OPTION>, e.g. GPBOOST_MINGW=1 or GPBOOST_CUDAGP=1. Note that python setup.py install --<option> and pip install --install-option=--<option> do not work anymore since these mechanisms have been removed from setuptools and pip.

Build CUDA Version

git clone --recursive https://github.com/fabsig/GPBoost.git
cd GPBoost/python-package
GPBOOST_CUDAGP=1 python -m pip install .

GPBOOST_CUDAGP=1 (CMake option USE_CUDA_GP) enables CUDA acceleration for the Gaussian process and mixed effects model parts, which is what the GPU_use = True argument of GPModel requires. This is different from GPBOOST_CUDA=1 (CMake option USE_CUDA), which enables the experimental CUDA version of the tree boosting part inherited from LightGBM.

For macOS and Windows users, the CUDA version is not supported.

CUDA library is needed: details for installation can be found in Installation Guide.

Metadata

Release files for gpboost 1.8.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 gpboost 1.8.0
File Size Uploaded Provenance Actions
gpboost-1.8.0.tar.gz 2.8 MB Without provenance Details for gpboost-1.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for gpboost 1.8.0
File Actions
gpboost-1.8.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for gpboost-1.8.0-py3-none-win_amd64.whl
gpboost-1.8.0-py3-none-manylinux_2_27_x86_64.whl Python 3 none Linux glibc 2.27+ x86-64 Details for gpboost-1.8.0-py3-none-manylinux_2_27_x86_64.whl
gpboost-1.8.0-py3-none-macosx_12_0_arm64.whl Python 3 none macOS 12.0+ ARM64 Details for gpboost-1.8.0-py3-none-macosx_12_0_arm64.whl
gpboost-1.8.0-py3-none-macosx_10_9_x86_64.whl Python 3 none macOS 10.9+ x86-64 Details for gpboost-1.8.0-py3-none-macosx_10_9_x86_64.whl

Total release size: 28.4 MB

Release files / gpboost-1.8.0.tar.gz

Download URL gpboost-1.8.0.tar.gz
Size 2.8 MB
Tags Source
SHA-256 checksum
How to use checksums
b2f5b1d5fc9a9c99176b17f5f799c0adcc88b4d896a2f272c8a4a89c0a54c97c
BLAKE2b-256 checksum
How to use checksums
8d615f3a249ceba05fc8ea007177482c742ca9e05177378fe7e6b9c6f8ab431c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / gpboost-1.8.0-py3-none-win_amd64.whl

Download URL gpboost-1.8.0-py3-none-win_amd64.whl
Size 3.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3838ed546ae6f21802ed9e9960e1b823c9d359e73357d9fbfd51191441a16e37
BLAKE2b-256 checksum
How to use checksums
06c9981a15ce4c788406fef61e33b641cde4440b21d028dcd4737387093f5d25
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / gpboost-1.8.0-py3-none-manylinux_2_27_x86_64.whl

Download URL gpboost-1.8.0-py3-none-manylinux_2_27_x86_64.whl
Size 7.7 MB
Tags Linux glibc 2.27+ x86-64 Python 3
SHA-256 checksum
How to use checksums
73cbf518eefc70f15ce31cb9af9aefa9ac08c0b5f29bb7ac2eff982b624fb18b
BLAKE2b-256 checksum
How to use checksums
217791d26f864364a3e8017f94033d6af7a68430eae4273ff94f07116e182aa9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / gpboost-1.8.0-py3-none-macosx_12_0_arm64.whl

Download URL gpboost-1.8.0-py3-none-macosx_12_0_arm64.whl
Size 6.7 MB
Tags Python 3 macOS 12.0+ ARM64
SHA-256 checksum
How to use checksums
d315d0e07276e96edcbfd8d9380745dda3547a848f04ca685cf45761bf6c7831
BLAKE2b-256 checksum
How to use checksums
c39049445b129823f4d30c3181a0e600e3d565be02f95e547efded6a476b284d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Release files / gpboost-1.8.0-py3-none-macosx_10_9_x86_64.whl

Download URL gpboost-1.8.0-py3-none-macosx_10_9_x86_64.whl
Size 7.5 MB
Tags Python 3 macOS 10.9+ x86-64
SHA-256 checksum
How to use checksums
55716c32f56ed2bc72100c229bd8edb6e8d85b53548e125aba7d312c6052612d
BLAKE2b-256 checksum
How to use checksums
ebd87fe5d1a37694187b866743e1a1566a78d990b18266d9dd5dab7dbe9fe684
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.6

Security for gpboost 1.8.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.

Release history Release notifications | RSS feed

This release

1.8.0 This release

5 release files No provenance

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