【问题标题】:Python => AutoML: XGBoost is not available; skipping itPython => AutoML:XGBoost 不可用;跳过它
【发布时间】:2021-05-05 16:01:11
【问题描述】:

我在运行 h2o AutoML 时收到此警告。我安装了 3.32.1.2 版本,并在 python 3.8 上运行它。

AutoML progress: |
11:30:52.773: AutoML: XGBoost is not available; skipping it.

代码:

import h2o
h2o.init()

h2o_df = h2o.H2OFrame(df)

train, test = h2o_df.split_frame(ratios=[.75])

# Identify predictors and response
x = train.columns
y = "TERM_DEPOSIT"
x.remove(y)

from h2o.automl import H2OAutoML

aml = H2OAutoML(max_runtime_secs=600,
                #exclude_algos=['DeepLearning'],
                seed=1,
                #stopping_metric='logloss',
                #sort_metric='logloss',
                balance_classes=False,
                project_name='Completed'
)
%time aml.train(x=x, y=y, training_frame=train)

【问题讨论】:

  • 嗨 Leo,你也可以试试 MLJAR AutoML,它是一个开源的 python 包,它有 xgboost、lightgbm 和 catboost 算法(来自 GBM 家族)github.com/mljar/mljar-supervised

标签: python-3.x xgboost h2o automl


【解决方案1】:

XGBoost 在 Windows 上不受支持,请参阅 H2O 文档中的 limitations

如果你没有使用Windows,并且在上面提到的文档中没有找到其他原因,你可以尝试重新安装h2o,例如,

pip install --force-reinstall https://h2o-release.s3.amazonaws.com/h2o/rel-zipf/2/Python/h2o-3.32.1.2-py2.py3-none-any.whl

【讨论】:

    【解决方案2】:

    我想我找到了这个警告的答案。我正在运行一台 Windows 机器。

    https://twitter.com/ledell/status/1148512129659625472?lang=en

    如果您使用的是 Windows,则不支持 XGBoost ?,因此教程中使用 XGBoost 的部分可以替换为 h2o.gbm()。 AutoML 过程也将排除 XGBoost 模型。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-10-05
      • 2021-11-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多