我使用安装包来安装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
答案 0 :(得分:4)
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的下一个稳定版本中,将在下一周或两周内发布。