win10环境 python添加xgboost包
来源:互联网 发布:sql 分组小计 编辑:程序博客网 时间:2024/06/03 23:00
$ cd xgboost
$ git submodule init
$ git submodule update
C:\ProgramFiles\mingw-w64\x86_64-7.1.0-posix-seh-rt_v5-rev0\mi
添加后重新打开git bash(win10系统还需重新开下机)
$ which mingw32-make检查是否添加成功
2、编译
切换到xgboost目录下编译
$ cd dmlc-core
$ make -j4
$ cd ../rabit
$ make lib/
$ cd ..
$ cp make/mingw64.mk config.mk
$ make -j4
3、安装(仍是使用git bash)
xgboost目录下进入python-package
c
p
4、检测
打开python编辑界面
importos
mingw_path ='C:\\Program File
os.environ['PATH']= mingw_path+ ';'+ os.environ['PATH']
importxgboostas xgb
importnumpyas np
data =n
label =n
dtrain =xgb.DMatrix(data, label=label)
dtest =dtrain
param ={'bst:max_depth':2,'bst:eta':1,'silent':1,'obj
param['nthread']= 4
para
evallist =[(dtest,'eval'),(dtrain,'train')]
num_round =10
bst =xgb.train(param, dtrain,num_round, evallist)
bs
参考:
https://xgboost.readthedocs.io/en/latest/build.html#building-on-windows
https://github.com/dmlc/xgboost
- win10环境 python添加xgboost包
- 64位win10下安装xgboost python包的教程
- windows 新版xgboost Python包安装教程 win10 64
- 64位win10下安装xgboost python包的教程
- 【转】windows 新版xgboost Python包安装教程 win10 64
- win10安装xgboost python版
- win10安装xgboost到python库
- 【Python学习】win10下xgboost Python安装教程
- Win10+python3.5环境安装xgboost(2017最新版)
- windows下安装xgboost的python包
- windows下安装xgboost的python包
- ubuntu 下python中安装xgboost包
- python包xgboost安装和简单使用
- win10(64位)python xgboost 详细安装教程
- win10 64位+anaconda+python 2.7.12 安装xgboost
- win10 64位,anacoda2,python 2.7 下安装xgboost
- 在win10下安装xgboost, python 为3.5
- 如何在python环境下安装xgboost
- 第四讲 依赖注入(Dependency Injection,简称DI)
- 二维码生成和解析
- Python
- leetcode 538. Convert BST to Greater Tree
- 在浏览器禁用cookies的情况下,实现访问次数的计数
- win10环境 python添加xgboost包
- Centos7安装cairo-dock桌面美化
- Joseph (约瑟夫环(打表))
- 【Swift】QuickLook--QLPreviewController文档查看器
- mysql解决 Access denied for user ‘root’@’localhost’ 问题
- 数据结构之单链表
- ffmpeg安装及简单使用
- HDU 4745 Two Rabbits——最长回文子串
- 第五讲 Bean的作用域和自动装配