Skip to main content

GPBoost Python Package

Project description

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
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

gpboost-1.6.8.tar.gz (2.2 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

gpboost-1.6.8-py3-none-win_amd64.whl (2.8 MB view details)

Uploaded Python 3Windows x86-64

gpboost-1.6.8-py3-none-manylinux_2_27_x86_64.whl (5.9 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

gpboost-1.6.8-py3-none-macosx_12_0_arm64.whl (5.2 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

gpboost-1.6.8-py3-none-macosx_10_9_x86_64.whl (5.8 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

Details for the file gpboost-1.6.8.tar.gz.

File metadata

  • Download URL: gpboost-1.6.8.tar.gz
  • Upload date:
  • Size: 2.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for gpboost-1.6.8.tar.gz
Algorithm Hash digest
SHA256 98ce30c79b98a51e76d65ae1215f0bf37f2de0c511e814a580b167b18c75d61e
MD5 d4543c785f2ab0fe3a4223e407aaf79c
BLAKE2b-256 a09fa5e587a034c29a2250820e918b375cdda5a5fb467e7ada1e53cdcb4a801a

See more details on using hashes here.

File details

Details for the file gpboost-1.6.8-py3-none-win_amd64.whl.

File metadata

  • Download URL: gpboost-1.6.8-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.8 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.6

File hashes

Hashes for gpboost-1.6.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 cff67a8ad258f5a9ac16043da6e35a263de0f2d3bc7750c1231dd96ffce2d9ec
MD5 0d970702cd3e25e43eaed58f019f137e
BLAKE2b-256 05c803afbfd6c8662aec769e7a564785acf886eda09c10b094fcec4a58f3544a

See more details on using hashes here.

File details

Details for the file gpboost-1.6.8-py3-none-manylinux_2_27_x86_64.whl.

File metadata

File hashes

Hashes for gpboost-1.6.8-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 80aabb428ff856b25448241913fb7d3695a965b828e47aa1fd0cc773ec7f1da6
MD5 e00fcc0ec787aa869df9a74654f2a215
BLAKE2b-256 8bbad86c57031be85865da680e6af624131ddc5f16b3a92920a2475e6d5f44ea

See more details on using hashes here.

File details

Details for the file gpboost-1.6.8-py3-none-macosx_12_0_arm64.whl.

File metadata

File hashes

Hashes for gpboost-1.6.8-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 4ef0df2f6240df8cb1c567749cc363e0153d4a91310d7c8ec74d75fac4c2c9e0
MD5 75d461d978a43b4913c61edfbba81f24
BLAKE2b-256 7c496358fa31f562a6a1dd2d0a66b85271a7b5412edbe3f65eaaa23452e094b4

See more details on using hashes here.

File details

Details for the file gpboost-1.6.8-py3-none-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for gpboost-1.6.8-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 1c6fb6579d0dc988ae02853ba4d05a5bbde9f31ba6170f655017cb2c21417911
MD5 1b0f7462493b37179a83c4515c10b4a1
BLAKE2b-256 d23a3609908487c32ddf7139d53728dbf7bef56f632b673e78f061b7eee83d1d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page