windows下xgboost安裝到python


初始環境

在安裝之前,我的anaconda2已經安裝好,git也有裝好

  1. 下載相對應的xgboost.dll文件
    下載地址
  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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM