xgboost 安裝


更新 xgboost 安裝

brew install gcc@9 libomp
pip install xgboost --user

更新 xgboost 安裝:

  1. 下載 xgboost.dll : http://ssl.picnet.com.au/xgboost/20180217/x64/xgboost.dll
  2. 下載 https://github.com/dmlc/xgboost/archive/master.zip
  3. 解壓 master.zip后, 進入目錄 python-package/xgboost, 將xgboost.dll 復制到此處。
    然后安裝 cd python-package; python setup.py install

參考: http://www.picnet.com.au/blogs/guido/post/2016/09/22/xgboost-windows-x64-binaries-for-download/


  1. 下載安裝 git-windows 和 mingw32-make, g++(64位)
    https://github.com/git-for-windows/git/releases/download/v2.7.3.windows.1/Git-2.7.3-64-bit.exe
    http://mirrors.aliyun.com/CRAN/bin/windows/Rtools/Rtools33.exe
    注意 windows 10 64位系統,用tdm-gcc編譯后,出現動態鏈接庫錯誤。 最新的mingw可以解決,下載見這里x86_64-5.3.0-release-win32-seh-rt_v4-rev0.7z

  2. 打開git bash, 輸入下面命令


git clone --recursive https://github.com/dmlc/xgboost
cd xgboost

git submodule init
git submodule update

alias make='mingw32-make'
cp make/mingw64.mk config.mk; make -j4

cd python-package/
python setup.py   install

參考:

  1. http://dnc1994.com/2016/03/installing-xgboost-on-windows/
  2. https://xgboost.readthedocs.org/en/latest/build.html#building-on-windows


免責聲明!

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



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