如何在Python上安装xgboost

如题所述

对于Linux平台运行pip(3) install xgboost即可。对 windows平台,官方建议自行编译:步骤1、clone Github项目
2、git checkout 9bc3d16(此分支中包含windows所需文件)
3、用visual studio2013打开位于xgboost/windows的项目
4、VS2013中打开configuration manager
选择active solution configuration中release
选择active solution platform中x64
5、重构(rebuild)xgboost和xgboost_wapper
6、拷贝xgboost/windows/x64/release文件夹里所有文件到到xgboost/wrapper
7、去xgboost/python-package运行python setup.py install
8、检查是否完成安装:python -c "import xgboost"
希望对你有帮助!
温馨提示:答案为网友推荐,仅供参考

相关了解……

你可能感兴趣的内容

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 非常风气网