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

Uploaded Python 3Windows x86-64

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

Uploaded Python 3manylinux: glibc 2.27+ x86-64

gpboost-1.6.7-py3-none-macosx_12_0_arm64.whl (5.1 MB view details)

Uploaded Python 3macOS 12.0+ ARM64

gpboost-1.6.7-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.7.tar.gz.

File metadata

  • Download URL: gpboost-1.6.7.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

Hashes for gpboost-1.6.7.tar.gz
Algorithm Hash digest
SHA256 c4423a8db363c75c066e2e0ca2cc7df454d38772e5a038e25d6107122b73b541
MD5 f20bfc893366c00663a7d6f1016f9faa
BLAKE2b-256 d9e7eb3a1f53f5ac3daba3762345c0f3a34f222e8b017e3e31d5f911a2c53419

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpboost-1.6.7-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.1.0 CPython/3.13.3

File hashes

Hashes for gpboost-1.6.7-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1b2fa3b5c23216071bb2e93a33693b773752d5d13bccb47189845edf2095091e
MD5 f635d0295fe35c87ce02396ddef2a423
BLAKE2b-256 f9e4f8c66c0affeefa376ce8ce4bd9aeda0bf9f6004e3971e6607bc8e9d89acc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.6.7-py3-none-manylinux_2_27_x86_64.whl
Algorithm Hash digest
SHA256 3d833cd92fd9c8a577a79a6b93592082d43c81176e7b9073588931bb5c9e328c
MD5 82620c3b991fd56fa825733b15e62e12
BLAKE2b-256 17de824ee04616045bc6e59de2540eb3e2880fce59c13991b993e3b647b948ca

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.6.7-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 c972add6bad7c19495b3a9cae9ecc220eac9d9c7089c991aa7a55d891d6f3baa
MD5 0789946289c37ef867837c4d6602053c
BLAKE2b-256 ba193d896bbbf49b192be9dd953bf9f541fdb37d32fd1b8887d7203ada8be6e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.6.7-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c5673c1fb1ff9f13b7e245a29fbc8c537fa6423a8dd7f32d3469babddd61b0d5
MD5 9e243c0aaa6a3e23f7577cd47416be8a
BLAKE2b-256 f66a1ee68cf6fd53b9ccacb2d7fc94879b00cefbce7781b95575941dab11d8c1

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