首页 > 解决方案 > 算法“xgboost”未注册

问题描述

我正在运行以下代码片段

h2o_xgb <- h2o.xgboost(x = features, 
                       y = response, 
                       training_frame = train,
                       nfolds = 3)
h2o_xgb

我收到以下错误

Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page,  : 
  

ERROR MESSAGE:

Algorithm 'xgboost' is not registered. Available algos: [targetencoder,deeplearning,glm,glrm,kmeans,naivebayes,pca,svd,drf,gbm,isolationforest,aggregator,word2vec,stackedensemble,coxph,generic,gam,psvm,rulefit]

标签: rxgboosth2o

解决方案


您可以检查 xgboost 在 h2o 集群上是否可用并且可以用于:

h2o.xgboost.available()

但是,如果您在 Windows 上,则 h2o 中的 xgboost 不可用。请参阅xgboost 的 h2o 帮助页面上的限制。


推荐阅读