LoginSignup
2
7

More than 5 years have passed since last update.

BoostingライブラリをColaboratoryで使ってみよう

Last updated at Posted at 2018-03-12

話題のColaboratoryでBoostingライブラリのインストールを試してみました。

1.Googleアカウントを作成する。
2.Google ChromeからColaboratoryをググって起動する。
3.ファイルメニューからPythonのノートブックを作成。Jupyter notebook同様の操作が可能です。
4.以下のコードで各ライブラリのインストールが実行される。
行頭に!をつけるとLinuxのコマンド実行になります。

XGBoost
!pip install xgboost
import xgboost as xgb
CatBoost
!pip install catboost
import catboost
LightGBM
!pip install lightgbm
import lightgbm as lgb

なんだかんだと環境構築にはめんどくさい側面がありますが、Colaboratoryならお手軽ですね。

2
7
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
2
7