【问题标题】:h2o not working while knitting markdown file in R在R中编织markdown文件时h2o不起作用
【发布时间】:2019-02-06 22:29:28
【问题描述】:

我在 R 中运行 h2o(使用 RMarkdown),当我一次运行一个块时它工作正常。但是,当我尝试编织 HTML 文件时,它给了我如下错误:

.h2o.doSafeREST 中的错误(h2oRestApiVersion = h2oRestApiVersion,urlSuffix = urlSuffix,:意外的 CURL 错误:无法解析主机:localhost

有人知道如何解决这个问题吗?我的代码块如下:

if (try.h2o == TRUE){
  h2o.init()
  h2o.removeAll()

  train.data.h2o <- as.h2o(train.data)
  h2o.describe(train.data.h2o)

  tic("\n\n\nTotal Time taken by H20 Auto ML to train: ")
  aml <- h2o.automl(y = label.names, 
                    training_frame = train.data.h2o,
                    max_models = 50,
                    seed = 1,
                    project_name = "temp")
  toc()
}

【问题讨论】:

    标签: r-markdown h2o


    【解决方案1】:

    显然,如果我终止在后台运行的 Java 进程并重新打结 Markdown,它可以正常工作,所以这可能是一个临时问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-09-05
      • 1970-01-01
      • 2019-12-08
      • 1970-01-01
      • 1970-01-01
      • 2017-03-01
      • 1970-01-01
      相关资源
      最近更新 更多