[英]Xgboost h2o error on WIndows OS?
我嘗試使用 Windows 操作系統在本地計算機上運行 xgboost。 但出現以下錯誤:
Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page, :
ERROR MESSAGE:
java.lang.AssertionError: Unregistered algorithm xgboost
這是我的代碼示例:
library(h2o)
h2o.init(enable_assertions = TRUE)
localH2O=h2o.init(nthreads = 8)
train.h2o <- h2o.importFile("train.csv")
test.h2o <- h2o.importFile("test.csv")
# Number of CV folds (to generate level-one data for stacking)
nfolds <- 5
y <- get_index(train.h2o,"loss")
x <- setdiff(1:length(train.h2o), y)
x=h2o.colnames(train.h2o[,x])
y=h2o.colnames(train.h2o[,y])
my_xgb1 <- h2o.xgboost(x = x,
y = y,
training_frame = train.h2o,
ntrees = 50,
max_depth = 3,
min_rows = 2,
learn_rate = 0.2,
nfolds = nfolds,
fold_assignment = "Modulo",
keep_cross_validation_predictions = TRUE,
seed = 1)
當我運行它時,出現以下錯誤:
錯誤:意外的 HTTP 狀態代碼:500 服務器錯誤(url = http://localhost:54321/3/ModelBuilders/xgboost )
java.lang.AssertionError [1] "java.lang.AssertionError: Unregistered algorithm xgboost"
[2] " hex.ModelBuilder.make(ModelBuilder.java:149)"
[3]"
water.api.ModelBuildersHandler.fetch(ModelBuildersHandler.java:35)"
[4] " sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)"....
我在這里發現 xgboost for h2o 適用於某些特定的開發環境。
我的問題是:我怎樣才能讓它在 Windows 操作系統上工作?
謝謝。
你可以在 github 上為這個功能投票:
Windows不支持XGBoost 。
限制清單包括:
- Windows不支持 XGBoost。
- 支持的平台列表包括:Linux 或 OS X
當我遇到同樣的問題時,我打開了我的COLAB帳戶並在那里嘗試。 它確實對我有用。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.