博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
windows下xgboost安装到python
阅读量:4686 次
发布时间:2019-06-09

本文共 482 字,大约阅读时间需要 1 分钟。

 初始环境

在安装之前,我的anaconda2已经安装好,git也有装好

  1. 下载相对应的xgboost.dll文件
    1182063-20171127175407550-1481643398.png
  2. Installing the Python Wrapper
    for me: xgboost_install_dir = D:\Python\algorithm
    git clone xgboost_install_dir
    copy xgboost.dll (downloaded from this page) into the xgboost_install_dir\python-package\xgboost directory
    cd xgboost_install_dir\python-package 
    python setup.py install
  3. Using the Python Library
import xgboostxr = xgboost.XGBRegressor()xr.fit(X, y)xr.predict(X_test)

转载于:https://www.cnblogs.com/james0/p/7905250.html

你可能感兴趣的文章
[bzoj 1143]最长反链二分图最大匹配
查看>>
SpringBoot(一)
查看>>
Azure Powershell script检测登陆并部署ARM Template
查看>>
SSO
查看>>
【LeetCode刷题系列 - 003题】Longest Substring Without Repeating Characters
查看>>
常用git命令
查看>>
深入了解HTTP协议、HTTP协议原则
查看>>
软件开发者最重要的四大技能(转)
查看>>
redis集群【转】
查看>>
get、put、post、delete含义与区别
查看>>
JS中innerHTML,innerText,value区别
查看>>
taglib.jsp
查看>>
Windows平台下使用Beyond Compare作为GIT默认的比对与合并工具
查看>>
Linux常用命令 (1)
查看>>
WinSCP命令行操作
查看>>
十分巧妙的 对话框组件 artDialog
查看>>
java 深入技术一
查看>>
Android 收到短信后启动
查看>>
安装php扩展redis (windows环境)
查看>>
bootstrap课程8 bootstrap导航条在不同设备上的显示效果如何
查看>>