Google colab上的Pycaret:“ estotator xgboost不可用”

发布于 2025-02-08 04:03:45 字数 318 浏览 3 评论 0原文

我已经安装了Pycaret和Xgboost,如下所示:

!pip install pycaret==2.3.10 markupsafe==2.0.1 pyyaml==5.4.1 --use-deprecated=legacy-resolver -qq
!pip install xgboost

但是,当我尝试创建以下XGBoost模型时,它会引发错误“ Entionator XGBoost不可用”。

xgboost = create_model('xgboost')

为什么这是?我想念什么?

I have installed pycaret and xgboost as follows:

!pip install pycaret==2.3.10 markupsafe==2.0.1 pyyaml==5.4.1 --use-deprecated=legacy-resolver -qq
!pip install xgboost

But when I try to create the following Xgboost model, it throws an error "Estimator xgboost not available."

xgboost = create_model('xgboost')

Why is this? What am I missing?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黎夕旧梦 2025-02-15 04:03:45

NVM,我找到了原因。我忘了将以下几行添加到我的导入代码:

from pycaret.classification import *
import xgboost

Nvm, I found the reason. I forgot to add the following lines to my import code:

from pycaret.classification import *
import xgboost
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文