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
  • You may need to install wheel via pip install wheel first.

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. Also, in some 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 (Xcode version 12.3 is used starting from GPBoost version 0.3.0) compiler. You need to install the OpenMP library. You can install the OpenMP library by the following command: brew install libomp.

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. Also, in some rare cases you may need to install 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


Release history Release notifications | RSS feed

This version

0.7.8

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpboost-0.7.8.tar.gz (3.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-0.7.8-py3-none-win_amd64.whl (1.4 MB view details)

Uploaded Python 3Windows x86-64

gpboost-0.7.8-py3-none-manylinux1_x86_64.whl (3.0 MB view details)

Uploaded Python 3

gpboost-0.7.8-py3-none-macosx_10_9_x86_64.whl (2.4 MB view details)

Uploaded Python 3macOS 10.9+ x86-64

File details

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

File metadata

  • Download URL: gpboost-0.7.8.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gpboost-0.7.8.tar.gz
Algorithm Hash digest
SHA256 3fc22666219a97cf041d438a69b512ec832173d3255d520ff1908e58412e83ab
MD5 2c998f945f60ef2b36f5fe2c88b3545e
BLAKE2b-256 6c0989609dbdf743b941cdfb4dc6c8705e2d93df89ec7e926670b7045da9e262

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpboost-0.7.8-py3-none-win_amd64.whl
  • Upload date:
  • Size: 1.4 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gpboost-0.7.8-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 abbbf1960ec5abf415b355f3dcd68bd8ee549333a994cbd03c7fe4b3f3a709b6
MD5 383b8bce58d4eae193a49e9435378dc6
BLAKE2b-256 aacb2e895c8fc900b92732fe74508b324e0d4ba846d27fd6402d3f85e0a7711d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpboost-0.7.8-py3-none-manylinux1_x86_64.whl
  • Upload date:
  • Size: 3.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gpboost-0.7.8-py3-none-manylinux1_x86_64.whl
Algorithm Hash digest
SHA256 26bbd1d7cfede156691b3f97e6ff5bf49bcf32869f8f967707dc37f482b37669
MD5 a049730d05094d326e4cf808aa55e447
BLAKE2b-256 de2a800f703a3067d1cda02672df2d3e12fb953cbe3b8f583051c29ca8efec4a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gpboost-0.7.8-py3-none-macosx_10_9_x86_64.whl
  • Upload date:
  • Size: 2.4 MB
  • Tags: Python 3, macOS 10.9+ x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/60.5.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for gpboost-0.7.8-py3-none-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 dc075a991d0c4c99896f5335904006cb12d06bd1c315319899d0d85bb50d4a13
MD5 6ec43cf70dc4a6f6e9ac9e8bbd1bd621
BLAKE2b-256 b55cbb4c17e3c173adcc87fb813114f7ae8aad2fb1335cf38013e79f9f9ef1a2

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