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
Build 32-bit version with 32-bit Python
pip install gpboost --install-option=--bit32

By default, installation in an environment with 32-bit Python is prohibited. However, you can remove this prohibition on your own risk by passing the bit32 option (not recommended).

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 setup.py install

Note: sudo (or administrator rights in Windows) may be needed to perform the command.

Build with MinGW-w64 on Windows
python setup.py install --mingw

If you get any errors during installation or due to any other reasons, you may want to build a dynamic library from source by any method you prefer and then just run python setup.py install --precompile.

Project details


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.5.2.tar.gz (4.0 MB view details)

Uploaded Source

Built Distributions

gpboost-1.5.2-py3-none-win_amd64.whl (2.0 MB view details)

Uploaded Python 3 Windows x86-64

gpboost-1.5.2-py3-none-manylinux1_x86_64.whl (4.4 MB view details)

Uploaded Python 3

gpboost-1.5.2-py3-none-macosx_12_0_arm64.whl (3.6 MB view details)

Uploaded Python 3 macOS 12.0+ ARM64

gpboost-1.5.2-py3-none-macosx_10_9_x86_64.whl (3.9 MB view details)

Uploaded Python 3 macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: gpboost-1.5.2.tar.gz
  • Upload date:
  • Size: 4.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.13

File hashes

Hashes for gpboost-1.5.2.tar.gz
Algorithm Hash digest
SHA256 af2850581caa85312cb6d46c4b6c12bc1b932f56ced6e9cff9fbbd9fadca35a4
MD5 da26054651cf248cfd56c242b3471585
BLAKE2b-256 9d8ff88bfe39d77927ada4bbc43da2f80402c0fbb27c757bbb0bad231c7c1c86

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for gpboost-1.5.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 0860634cc1100836349bcee7d5f54110a98b6c84e6dda590a809b05ca1824077
MD5 7afbb206cb43a0e3f5cf5b828e182271
BLAKE2b-256 ca0967a30e41ef3d6fcfb6785f8bd79650ebcb84fee145c6bc5a75a341973f29

See more details on using hashes here.

File details

Details for the file gpboost-1.5.2-py3-none-manylinux1_x86_64.whl.

File metadata

File hashes

Hashes for gpboost-1.5.2-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 9ec07177a3559d6898e6f723d48ac80872518476416ae5303a3fa5bb52e61d2e
MD5 12788185bd190f6c1beebc460b140def
BLAKE2b-256 0cb65d8d650e542c847215b3a7d3e470eee704d10ff04de2e9619b855f6649ec

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.5.2-py3-none-macosx_12_0_arm64.whl
Algorithm Hash digest
SHA256 a87ffd2a787a50ef878a7ab7c5cc63e704388a30abdb5d7da0ee1dca8a2ee8b8
MD5 67565b2994638ad2301ac8365439327d
BLAKE2b-256 d33a9905e70cb95c4ef812f696dc2bccc587808578cc78c9c3cde477ca1eefff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gpboost-1.5.2-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 14153700dae5db6a7a6d9f83ab0c4fe5487e7a206cbc81953384632890bfeb2f
MD5 b0d547d8c6846dd83ef6710bdeb8d759
BLAKE2b-256 e50538dfb2a54e73d665d08c0848b98a857c8cdda4eb03eb56d6e6e3ae54923b

See more details on using hashes here.

Supported by

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