数据分析计算xgboost模块

一、安装xgboost方法

摘要:之前为了安装xgboost,少不了进入各种坑,但最终安装成功了!首先,
准备的工作:1,下载mingw64,链接https://pan.baidu.com/s/1i5CHftb,
解压后把:/mingw64/bin路径添加到环境变量;2,进入:/mingw64/bin中,
把mingw32-make.exe改为make.exe;成功后,在cmd下输入make,
可看到返回“make:***Notargets..........stop”的东东;3,下载git,链接https://pa

首先,准备的工作:
1,下载mingw64,链接https://pan.baidu.com/s/1i5CHftb,解压后把:/mingw64/bin路径添加到环境变量;
    云盘已存在:x64-4.8.1-release-posix-seh-rev5.7z
2,进入:/mingw64/bin中,把mingw32-make.exe改为make.exe;成功后,在cmd下输入make,可看到返回“make:***No targets..........stop”的东东;
3,下载git,链接https://pan.baidu.com/s/1gfAJsMf,直接点next安装
    云盘已存在: Git-2.9.0-64-bit.exe
4,下载xgboost并解压,链接https://pan.baidu.com/s/1boQQkk3
    云盘已存在:xgboost.zip
5,到这里差不多可以说成功一半了;还有另外一半就是,numpy和scipy必须提前安装好,可直接pip install numpy,接下来,
  打开Git Bash,cd到xgboost的路径(也可输入cd,然后用鼠标把xgboost拖到cd之后);回车,输入cp make/mingw64.mk  config.mk; make  -j4回车;
6,打开cmd,cd到xgboost中的python-pakeage,之后输入python setup.py install
7.OK!
原文地址:https://www.cnblogs.com/linu/p/9196132.html