XGBoost-安装(Windows/VS2015)
来源:互联网 发布:爱知科技工资怎么样 编辑:程序博客网 时间:2024/05/18 02:03
昨天想装theano的时候,误删了之前的一些python包,导致xgboost无法使用。索性重新安装了anaconda平台,方便自己后续的使用。
Anaconda是python科学计算的集成。使用起来给人matlab的感觉。并且预装了numpy,scipy,matplotlib,pandas, scikit-learn等多个常用的工具包。
环境:
VS2015
Win10
anaconda(python2.7-64位版本)安装:
1、删除C:/python27/的所有内容
2、进入控制面板删掉原来所有python相关的环境变量
3、进入anaconda下载需要的按照https://www.continuum.io/downloads
4、直接安装anaconda
5、安装完后,可以选择使用Ipython,但使用其自带的spyder更加方便
xgboost安装:
1、GitHub上下载xgboost的zip文件
(发现github上找不到windows文件夹了。。不知道放在哪里,因此把之前自己下载的版本放在这里方便下载(2015.11版本))
百度云:http://pan.baidu.com/s/1hsauSlA
密码:zekq
2、解压到本地(xgboost-master)
3、进入里面的windows文件夹,打开.sln文件。
4、在第3步中,由于我用的是vs2015,而xgboost要求用vs2010编译。在打开文件后,vs会询问你是否要用vs2015(v140)编译这个项目,此时选择yes。
5、编译发现报错,点错误消息发现是一个代码文件中的sleep函数没有定义。上网查了相关的资料,在这个文件的开头#include <windows.h>头文件,再将sleep首字母改为大写Sleep。再次编译就通过了。
6、打开 xgboost-master/windows/x64/release 复制xgboost_wrapper.dll文件到 xgboost-master/python-package/xgboost 文件夹下。(这样以后使用的时候就不需要指明wrapper文件夹的位置了)
7、安装xgboost。打开cmd窗口,cd到../xgboost-master/python-package目录下。再运行 python setup.py install,即可以完成安装。
8、使用时 import xgboost as xgb即可
xgboost官方资料,https://github.com/dmlc/xgboost/tree/master/windows
- XGBoost-安装(Windows/VS2015)
- XGBoost-安装(Windows/VS2015)
- Windows 下安装 XGBoost
- Windows下安装XGBoost
- windows安装XGBoost
- Windows下安装xgboost
- windows 10 安装xgboost
- windows下安装xgboost
- windows 安装xgboost
- windows下安装xgboost
- windows下xgboost安装
- windows安装python和xgboost
- Windows下安装xgboost详解;
- Windows X64下安装xgboost
- windows下xgboost 安装教程
- 【译】Windows下安装XGBoost
- windows下安装xgboost解决方案
- windows下安装xgboost教程
- Case when
- MFC-DateTimePicker
- 做一个合格的程序猿之浅析Spring AOP源码(十八) Spring AOP开发大作战源码解析
- 本人的MSDN文档集合
- 两个栈模拟队列,两个队列模拟栈
- XGBoost-安装(Windows/VS2015)
- 大话设计模式—模板方法模式
- 线程
- Object的clone()方法、深拷贝、浅拷贝
- Windows下IPython的配置安装
- tomcat性能调优 大赞
- 王学岗ListView和源码解析(二)
- onActivityForResult不执行
- 汇编级代码优化