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.7.0.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.7.0-py3-none-win_amd64.whl (2.9 MB view details)

Uploaded Python 3Windows x86-64

gpboost-1.7.0-py3-none-manylinux_2_27_x86_64.whl (6.0 MB view details)

Uploaded Python 3manylinux: glibc 2.27+ x86-64

gpboost-1.7.0-py3-none-macosx_12_0_arm64.whl (5.4 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

gpboost-1.7.0-py3-none-macosx_10_9_x86_64.whl (5.9 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: gpboost-1.7.0.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.7.0.tar.gz
Algorithm Hash digest
SHA256 f0059af8954c0dbb2f90de404fc85b3471252de4153d512efa2bda139cfc53ab
MD5 5d431c9f438a25ea0a8b109b36f432b7
BLAKE2b-256 2cf871fec3bf5a4e65ea70ed4caa72c47f6507d5f9e880b3a0e59cea861791ca

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpboost-1.7.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 2.9 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.7.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 18972e65c18009b3d02389577fb6eb5a799f1324b452cd5204ef5676bbf16412
MD5 b674a73ad8f3c0508f5307ef18c4469e
BLAKE2b-256 3a2e1fd7ebf5ff6afeb63cf837cf4d10d4c9be460a91eb7f95d82c4320d55295

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.7.0-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 a6ff0425f2ec3e008bfaa096b646c24b539d93c51465d144c1c72b822990659e
MD5 fea4f5aa7b331947a30e87d25ddf31d1
BLAKE2b-256 9d8102948387cca3043a29ede0e2981d0e67b626eb36734f73c136767ed8c3c3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.7.0-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 f51b4cc2b9fc1b1be95b64263849cd83769db00788325058e9233f65d0733ce3
MD5 8c24467170e5a4389521375cbb481c6c
BLAKE2b-256 454fbe974717875e34d532b9a398f7e2bd783ef03d0052ce633c6a4fe4855c79

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.7.0-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 f130553a63bd96f1cbe6613e7a0855034a0d5e6899c722b5743d2c8a082ab79e
MD5 7d7f5c368aeee87d0a69831d98899df2
BLAKE2b-256 a15ad9e722d1e0702b15ae6ddf075d3d20c5cd1d3caafeef8f0505fd6785abbf

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