GPBoost Python Package
Project description
GPBoost Python Package
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
- Python examples
- GPBoost / LaGaBoost algorithm for Gaussian ("regression") and non-Gaussian likelihoods (e.g., "classification", etc.)
- Generalized linear Gaussian process and mixed effects models
- The documentation at https://gpboost.readthedocs.io
Installation
Before you install
-
setuptools is needed. You can install this using
pip install setuptools -U -
32-bit Python is not supported. Please install the 64-bit version. See build 32-bit version with 32-bit Python section.
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 directoryerror when importing GPBoost, you need to install the OpenMP runtime library separately (use your package manager and search forlib[g|i]ompfor 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 miniforgeandconda 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]ompfor doing this).
- In rare cases, you may need to install the OpenMP runtime library separately (use your package manager and search for
-
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
pip install gpboost --install-option=--mingw
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
python setup.py install --mingw
Build CUDA Version
python setup.py install --cudagp
For macOS and Windows users, the CUDA version is not supported.
CUDA library is needed: details for installation can be found in Installation Guide.
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 Distributions
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 gpboost-1.6.6.tar.gz.
File metadata
- Download URL: gpboost-1.6.6.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0d858fb6c0a263b03cf573c01addf44454c85110907ac868b398c229af1a41b5
|
|
| MD5 |
c6b7f54c2cb22daa992ea2d2a6ab3551
|
|
| BLAKE2b-256 |
656ad075e5a8da4f0aa6e0bd73a0d0de9aa770427603cb80b044406253c95ac5
|
File details
Details for the file gpboost-1.6.6-py3-none-win_amd64.whl.
File metadata
- Download URL: gpboost-1.6.6-py3-none-win_amd64.whl
- Upload date:
- Size: 2.7 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e6d36b8ac44fbcd947ae68d4ad0da346d57c63c86b488b27f56ede183c9e7ba4
|
|
| MD5 |
7ac0dd03aa9f291db43ca7a5d119e2e4
|
|
| BLAKE2b-256 |
85fa2d103c1bdf53c470c0438ab6d58e1bdd60ed934d7b459278a3b6dd733386
|
File details
Details for the file gpboost-1.6.6-py3-none-manylinux_2_27_x86_64.whl.
File metadata
- Download URL: gpboost-1.6.6-py3-none-manylinux_2_27_x86_64.whl
- Upload date:
- Size: 5.8 MB
- Tags: Python 3, manylinux: glibc 2.27+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6dc7331d4552d8eb729aa25b0a5fe837b754b5c8a99b520e7e2fe4b6c88dec28
|
|
| MD5 |
82f10443b59c2dc218079a68f48ca63f
|
|
| BLAKE2b-256 |
6eb12af02dba7370584ae5447c0b06c102d813a3a72066b26d075beca67de93d
|
File details
Details for the file gpboost-1.6.6-py3-none-macosx_12_0_arm64.whl.
File metadata
- Download URL: gpboost-1.6.6-py3-none-macosx_12_0_arm64.whl
- Upload date:
- Size: 4.9 MB
- Tags: Python 3, macOS 12.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9731bc3b0000015d9efa3439da7c779afb2d91012c2b72218c28fa3c5b94a1a4
|
|
| MD5 |
71a237bce1293058cb56206553cd8067
|
|
| BLAKE2b-256 |
1dfc7a4c1f433a2795dc0596e69d3d15b257bd31644a0f94fcbde5b47dac0b41
|
File details
Details for the file gpboost-1.6.6-py3-none-macosx_10_9_x86_64.whl.
File metadata
- Download URL: gpboost-1.6.6-py3-none-macosx_10_9_x86_64.whl
- Upload date:
- Size: 5.7 MB
- Tags: Python 3, macOS 10.9+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81d21d1c226c0a376ccf71bc01a045caf6f6cee29aa4add64aad9fd47cab2a2c
|
|
| MD5 |
2653bb1e3633e67ee6f0bbe36d4ddaf3
|
|
| BLAKE2b-256 |
db28082c4fd5ce863d974105ad0eae7a77e7b3fa77edcc0b76f117acdfb558eb
|