LoginSignup
7
1

More than 5 years have passed since last update.

LightGBM インストールからインポートまで

Posted at

導入

kaggle始めるとLightGBMを使っている人が多いことに気がつくと思います。そこで今回は、インストールしてimportできるようになるまでの手順を紹介します。

LightGBMが使えるようになるまで

brew install cmake
brew install gcc

git clone --recursive https://github.com/Microsoft/LightGBM ; cd LightGBM
export CXX=g++-7 CC=gcc-7
mkdir build ; cd build
cmake ..
make -j4

cd ../
python python-package/setup.py install

これでJupyter bookなどでimportできるようになると思います!

参考

7
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
7
1