> devtools::test()
ℹ Loading agua
ℹ Testing agua
✔ | F W S OK | Context
⠏ | 0 | misc openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment Homebrew (build 11.0.15+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.15+0, mixed mode)
✔ | 6 | misc [3.3s]
|======================================================================| 100%
|======================================================================| 100%
| | 0%Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = urlSuffix, :
Unexpected CURL error: Failed to connect to localhost port 54321 after 0 ms: Connection refused
[1] "Job request failed Unexpected CURL error: Failed to connect to localhost port 54321 after 0 ms: Connection refused, will retry after 3s."
Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = urlSuffix, :
Unexpected CURL error: Failed to connect to localhost port 54321 after 0 ms: Connection refused
[1] "Job request failed Unexpected CURL error: Failed to connect to localhost port 54321 after 0 ms: Connection refused, will retry after 3s."
Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = urlSuffix, :
Unexpected CURL error: Failed to connect to localhost port 54321 after 0 ms: Connection refused
[EDIT: deleted duplicates for brevity]
──────────────────────────────────────────────────────────────────────────────────────────────
Failure (test-parsnip-execution.R:15:3): parsnip model execution
Snapshot of code has changed:
old[10:16] vs new[10:16]
" Model ID: fit_1 "
" Model Summary: "
" number_of_trees number_of_internal_trees model_size_in_bytes min_depth"
- " 1 5 5 1292 6"
+ " 1 5 5 1293 6"
" max_depth mean_depth min_leaves max_leaves mean_leaves"
" 1 7 6.40000 12 18 16.00000"
" "
* Run `snapshot_accept('parsnip-execution')` to accept the change
* Run `snapshot_review('parsnip-execution')` to interactively review the change
Error (test-parsnip-execution.R:19:3): parsnip model execution
Error in `.h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = urlSuffix,
parms = parms, method = "POST", fileUploadInfo = fileUploadInfo,
...)`: Unexpected CURL error: Failed to connect to localhost port 54321 after 0 ms: Connection refused
Backtrace:
1. stats::predict(fit_reg, head(mtcars))
at test-parsnip-execution.R:19:2
7. h2o:::h2o.predict.H2OModel(object = object$fit, newdata = new_data)
8. h2o:::.h2o.__waitOnJob(job_key)
9. base::tryCatch(...)
10. base tryCatchList(expr, classes, parentenv, handlers)
11. base tryCatchOne(expr, names, parentenv, handlers[[1L]])
12. value[[3L]](cond)
13. h2o:::.h2o.doSafePOST(urlSuffix = url.suf)
14. h2o:::.h2o.doSafeREST(...)
──────────────────────────────────────────────────────────────────────────────────────────────
✔ | 4 | parsnip-specs [0.2s]
══ Results ═══════════════════════════════════════════════════════════════════════════════════
Duration: 28.8 s
[ FAIL 2 | WARN 0 | SKIP 0 | PASS 11 ]
When running interactively, at test-parsnip-execution.R L29
I see:
fit_reg <-
boost_tree(learn_rate = .1, trees = 5) %>%
set_engine("h2o", model_id = "fit_2") %>%
set_mode("regression") %>%
fit(mpg ~ ., data = mtcars)
expect_equal(class(fit_reg), c("_H2ORegressionModel", "model_fit"))
expect_snapshot(
fit_reg
)
># Error in .h2o.doSafeREST(h2oRestApiVersion = h2oRestApiVersion, urlSuffix = page, :
>#
>#
># ERROR MESSAGE:
>#
># Algorithm 'xgboost' is not registered. Available algos: [infogram,targetencoder,deeplearning,glm,glrm,kmeans,naivebayes,pca,svd,drf,gbm,isolationforest,extendedisolationforest,aggregator,word2vec,stackedensemble,coxph,generic,gam,anovaglm,psvm,rulefit,upliftdrf,modelselection]
From what I can tell, xgboost may not be supported on M1, as its installation is platform-dependent: https://h2oai.atlassian.net/browse/PUBDEV-8482