Package: gpboost
GPBoost Python PackageThis is the Python package implementation of the GPBoost library. Seehttps://github.com/fabsig/GPBoostfor more information on the modeling background and the software implementation.Table of ContentsExamples and documentationInstallationInstallation from PyPIInstallation from sourceExamples and documentationPython examplesGPBoost / LaGaBoost algorithmfor Gaussian ("regression") and non-Gaussian likelihoods (e.g., "classification", etc.)Generalized linear Gaussian process and mixed effects modelsThedocumentation athttps://gpboost.readthedocs.ioInstallationBefore you installsetuptoolsis needed. You can install this usingpip install setuptools -U32-bit Python is not supported. Please install the 64-bit version. Seebuild 32-bit version with 32-bit Python section.Installation fromPyPIusing precompiled binariespipinstallgpboost-URequirementsForWindowsusers,VC runtimeis needed ifVisual Studio(2015 or newer) is not installed.ForLinuxusers,glibc>= 2.14 is required.If you get an error messageversion `GLIBC_2.27' not found, you need toinstall from source.In rare cases, when you get theOSError: libgomp.so.1: cannot open shared object file: No such file or directoryerror when importing GPBoost, you need to install the OpenMP runtime library separately (use your package manager and search forlib[g|i]ompfor doing this).FormacOSusers:The library file in distribution wheels is built by theApple Clangcompiler. You need to install theOpenMPlibrary. You can install theOpenMPlibrary by the following command:brew install libomp.If you have anarm64 Apple siliconprocessor (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 miniforgeandconda init "$(basename "${SHELL}")")Installation from sourceInstallation from source can be either done from PyPI or GitHub.Requirements for installation from sourceInstallation from source requires that you have installedCMake.ForLinuxusers,glibc>= 2.14 is required.In rare cases, you may need to install the OpenMP runtime library separately (use your package manager and search forlib[g|i]ompfor doing this).FormacOSusers, you can perform installation either withApple Clangorgcc.In case you preferApple Clang, you should installOpenMP(details for installation can be found in theInstallation Guide) first andCMakeversion 3.16 or higher is required. Only Apple Clang version 8.1 or higher is supported.In case you prefergcc, you need to install it (details for installation can be found in theInstallation Guide) and specify compilers by runningexport CXX=g++-7 CC=gcc-7(replace "7" with the version ofgccinstalled on your machine) first.ForWindowsusers,Visual Studio(orVS Build Tools) is needed.Installation from source from PyPIpipinstall--no-binary:all:gpboostBuild with MinGW-w64 on Windowspipinstallgpboost--install-option=--mingwCMakeandMinGW-w64should be installed first.Build 32-bit version with 32-bit Pythonpipinstallgpboost--install-option=--bit32By default, installation in an environment with 32-bit Python is prohibited. However, you can remove this prohibition on your own risk by passing thebit32option (not recommended).Installation from source from GitHubgitclone--recursivehttps://github.com/fabsig/GPBoost.gitcdGPBoost/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)pythonsetup.pyinstallNote:sudo(or administrator rights inWindows) may be needed to perform the command.Build with MinGW-w64 on Windowspythonsetup.pyinstall--mingwCMakeandMinGW-w64should be installed first.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 runpython setup.py install --precompile.