
XGBoost DLL,GPU支持,2019年最新版本。
5星
- 浏览量: 0
- 大小:None
- 文件类型:None
简介:
为了能够使用Python与XGBoost协同工作,请按照以下步骤进行准备。我将XGBoost放置在一个名为xgboost_install_dir的目录中,但您可以根据需要选择任何其他位置。1. 使用`git clone`命令将XGBoost代码从GitHub克隆到xgboost_install_dir目录。具体命令为:`git clone https://github.com/dmlc/xgboost.git xgboost_install_dir`。2. 将`libxgboost.dll`文件复制到`xgboost_install_dir\python-package\xgboost\`目录下。3. 切换到`xgboost_install_dir\python-package\`目录。4. 执行命令`python setup.py install`来安装XGBoost Python包。下面展示了使用示例:
```python
import xgboost
xr = xgboost.XGBRegressor()
xr.fit(X, y)
xr.predict(X_test)
```
全部评论 (0)
还没有任何评论哟~


