xgboost安装
来源:互联网 发布:nginx subs filter 编辑:程序博客网 时间:2024/06/03 21:29
据说很好用,but貌似目前版本都不大支持window
(1)首先配置好python环境,这个不多说了。
(2)下载xgboost代码(截止到2016年3月29号,新版本的xgboost代码还不支持windows,以下讲解的是旧版本的xgboost,如果有人想要旧版本的,我已经上传到我的资源上了,网址如下:http://download.csdn.net/download/googler_offer/9931711 可自行下载!)
https://github.com/dmlc/xgboost
(3)解压后,用Visual Studio(2010及其以上版本)来进行编译。打开Visual Studio后,open->E:\xgboost-master\xgboost-master\windows\xgboost.sln即可,全部编译一下,选择win32和release(64位的可以选择64),rebuild all resolution,出现3个都编译成功即可。
把 编译生成的xgboost_wrapper.dll, xgboost_wrapper.lib和xgboost.exe拷贝到\xgboost-master\python-package\xgboost中
(4)安装xgboost的python库。在cmd中把当前目录改到xgboost根文件加下面的python-package 文件夹,然后运行python setup.py install,即可完成xgboost的安装。会出现:
Installed c:\python27\lib\site-packages\xgboost-0.4-py2.7.egg Processing dependencies for xgboost==0.4 Searching for scipy==0.16.1 Best match: scipy 0.16.1 Adding scipy 0.16.1 to easy-install.pth file Using c:\python27\lib\site-packages Searching for numpy==1.7.0 Best match: numpy 1.7.0 Adding numpy 1.7.0 to easy-install.pth file Using c:\python27\lib\site-packages Finished processing dependencies for xgboost==0.4(只取了成功后下面的一小部分)
然后impor xgboost未出现错误则说明成功
注意:在编译的时候根据你自己Python的环境来选择win32还是x64
阅读全文
1 0
- xgboost 安装
- 安装xgboost
- xgboost安装
- 安装XGboost
- Linux下安装xgBoost
- xgboost包的安装
- Xgboost + python Win7 安装
- ubantu安装xgboost
- XGBoost-安装(Windows/VS2015)
- linux 下安装xgboost
- python 中 xgboost 安装
- mac xgboost安装
- centos下安装xgboost
- Ubuntu安装xgboost
- win10下安装xgboost
- ubuntu安装xgboost
- centos 6.7安装xgboost
- Ubuntu 下安装xgboost
- JVM(7):JVM调优-工具篇
- 机器学习笔记2:支持向量机SVM基础入门
- 【HPU OJ 1310 】序列的区间操作 【思维】
- python系列之os模块学习
- 在BAT工作和创业公司工作有什么不同的体验?
- xgboost安装
- (POJ
- Redis基准
- C++Primer Plus(第六版) 第十三章 第一题
- 第四章 第七节:多表更新之一步到位(CREATE....SELECT)
- 在自己网页中引入ckeditor
- if判断时,常量最好写左边
- SSH免密码登录-yellowcong
- win7系统下的Tomcat7.0安装配置