【问题标题】:issue installing h2o on r在 r 上安装 h2o 的问题
【发布时间】:2017-08-05 00:41:35
【问题描述】:

我使用安装包来安装 h2o。虽然我可以执行 h2o.init(),但找不到 h2o.autoML 函数:

could not find function "h2o.automl"

经过一番搜索,我在 tar.gz 中安装了“夜间出血边缘”version。但安装后,即使 h2o.init() 不再起作用并显示此错误:

Error: package or namespace load failed for ‘h2o’ in get(method, envir = home):
 lazy-load database '/Library/Frameworks/R.framework/Versions/3.4/Resources/library/h2o/R/h2o.rdb' is corrupt
In addition: Warning messages:
1: In .registerS3method(fin[i, 1], fin[i, 2], fin[i, 3], fin[i, 4],  :
restarting interrupted promise evaluation
2: In get(method, envir = home) :
restarting interrupted promise evaluation
3: In get(method, envir = home) : internal error -3 in R_decompress1

【问题讨论】:

  • 这是我试过的,它甚至阻止了 h2o.init() 的工作..谢谢
  • 您是否正在尝试将 h2o 安装到工作计算机上?如果正在调用 AWS 中的 S3 存储桶,您公司的防火墙可能会阻止对包的访问。

标签: r installation h2o


【解决方案1】:

h2o.automl() 功能已包含在过去 2 个月的夜间版本中,因此如果您已正确安装该软件包,它应该包含在其中。我推荐在 3.12“预览版”上发布夜间版本,因为 3.12 在 AutoML 中存在一些错误。

可以在此处安装每晚版本(从昨晚开始):

install.packages("h2o", type="source", repos="https://h2o-release.s3.amazonaws.com/h2o/master/3978/R")

稍后阅读本文的人应访问this page 以获取最新版本的链接。

在 R 中安装后,启动 H2O 集群并验证版本。应该和下面一样:

> h2o.init()
Reading in config file: ./../../.h2oconfig

H2O is not running yet, starting it now...

Note:  In case of errors look at the following log files:
    /var/folders/2j/jg4sl53d5q53tc2_nzm9fz5h0000gn/T//RtmpV47QKn/h2o_me_started_from_r.out
    /var/folders/2j/jg4sl53d5q53tc2_nzm9fz5h0000gn/T//RtmpV47QKn/h2o_me_started_from_r.err

java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

Starting H2O JVM and connecting: .. Connection successful!

R is connected to the H2O cluster: 
    H2O cluster uptime:         1 seconds 983 milliseconds 
    H2O cluster version:        3.13.0.3978 
    H2O cluster version age:    10 hours and 6 minutes  
    H2O cluster name:           H2O_started_from_R_me_flj500 
    H2O cluster total nodes:    1 
    H2O cluster total memory:   3.56 GB 
    H2O cluster total cores:    8 
    H2O cluster allowed cores:  8 
    H2O cluster healthy:        TRUE 
    H2O Connection ip:          localhost 
    H2O Connection port:        54321 
    H2O Connection proxy:       NA 
    H2O Internal Security:      FALSE 
    H2O API Extensions:         XGBoost, Algos, AutoML, Core V3, Core V4 
    R Version:                  R version 3.3.2 (2016-10-31) 

AutoML 将包含在 H2O 的下一个稳定版本 3.14.0.1 中,将在未来一两周内发布。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-11-25
    • 2022-07-08
    • 1970-01-01
    • 1970-01-01
    • 2018-02-25
    • 1970-01-01
    • 2019-08-08
    • 1970-01-01
    相关资源
    最近更新 更多