- 找个位置:
git clone --recursive https://github.com/dmlc/xgboost; - 下载编译文件,并放到xgboost/python-package/xgboost中;
- 在xgboost/python-package/目录下运行
python setup.py install; - 检测
cd xgboost/demo/gpu-acceleration/ || python cover_type.py。
- 找个位置:
git clone --recursive https://github.com/dmlc/xgboost; cd xgboost, thenmkdir build, thencmake .. -DUSE_CUDA=ONandmake -j4;cd xgboost/python-package/后,运行sudo apt-get install python-setuptools和sudo -s python setup.py install;- 检测
cd xgboost/demo/gpu-acceleration\ || python cover_type.py。