ubuntu18.04はLightGBMGPUバージョンをインストールしてから、catboostをインストールします



Ubuntu 18 04 Installed Lightgbm Gpu Version



まず、環境に応じていくつかをインストールします。

sudo apt-get install cmake libblkid-dev e2fslibs-dev libboost-all-dev libaudit-dev sudo apt-get install ocl-icd-libopencl1

次に、lightGBMファイルをコンパイルします。



git clone --recursive https://github.com/microsoft/LightGBM cd LightGBM mkdir build cd build cmake -DUSE_GPU=1 .. # if you have installed NVIDIA CUDA to a customized location, you should specify paths to OpenCL headers and library like the following: # cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda/lib64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/usr/local/cuda/include/ .. make -j4

次に、Pythonバージョンのcatboostをインストールします。

pip install catboost

インストールされている場合、anacondaは次のコマンドでインストールできます。



conda config --add channels conda-forge conda install catboost

[1] .lightGBM。 https://lightgbm.readthedocs.io/en/latest/Installation-Guide.html#id17

[2] .CMakeはBoostライブラリを見つけることができません(CMakeはBOOSTライブラリを見つけることができません)。 http://www.it1352.com/323838.html

[3] .condaインストール。 https://catboost.ai/docs/installation/python-installation-method-conda-install.html