一定期間更新がないため広告を表示しています
xgboost for Python を Bash on Ubuntu on Windows で動かしたいと思ってインストールしてみた。
ubuntu のバージョンは最新にしておいた。
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.5 LTS"
もし、最新でない場合には、以下のコマンドで最新化してもよいかもしれない。しなくてもよいかも。
sudo apt-get update
sudo apt-get upgrade
xgboost を使うためのコマンドは以下、インストールされているアプリケーションによって、不要な物があるだろう。
python3 では numpy のインストールがうまくいかなかった気がする。
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo python -m pip install numpy
sudo apt-get install liblapack-dev
sudo apt-get install libblas-dev
sudo apt-get install gfortran
sudo python -m pip install scipy
sudo python -m pip install xgboost==0.4a30
xgboost for Python の動作テスト
$ git clone https://github.com/dmlc/xgboost.git
$ cd xgboost/demo/guide/python
$ python sklearn_example.py
それっぽい結果が表示されたら成功。
(C) 2024 ブログ JUGEM Some Rights Reserved.