初始环境

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

  1. 下载相对应的xgboost.dll文件
    下载地址
    windows下xgboost安装到python
  2. Installing the Python Wrapper
    for me: xgboost_install_dir = D:\Python\algorithm
    git clone https://github.com/dmlc/xgboost.git 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 xgboost
xr = xgboost.XGBRegressor()
xr.fit(X, y)
xr.predict(X_test)
  1. related link

相关文章:

  • 2021-11-03
  • 2022-01-29
  • 2021-07-14
  • 2021-07-23
  • 2021-08-24
  • 2021-07-16
猜你喜欢
  • 2022-12-23
  • 2022-01-09
  • 2022-01-03
  • 2021-04-17
  • 2021-11-27
相关资源
相似解决方案