xgboost4j编译安装笔记

clone工程

git clone --recursive https://github.com/dmlc/xgboost.git

xgboost编译

cd xgboost; make clean_all && make -j4

xgboost gpu编译(目前只支持python和cli调用)

1
2
3
4
5
6
7
8
9
$ cd xgboost
$ mkdir build
$ cd build
$ cmake .. -DPLUGIN_UPDATER_GPU=ON
$ make -j
or
$ make -j PLUGIN_UPDATER_GPU=ON

xgboost4j编译

cd jvm-packages;mvn clean && mvn -Dmaven.test.skip=true -Dspark.version=2.1.0 package

xgboost python编译

cd python-package;python setup.py install

Refrence

1. https://xgboost.readthedocs.io/en/latest/build.html
2. http://dmlc.ml/2016/12/14/GPU-accelerated-xgboost.html