【发布时间】:2016-11-04 03:31:15
【问题描述】:
使用 as.h2o 时出错。有人有想法吗?
library(pacman)
p_load(h2o)
data(iris)
localH2O = h2o.init(ip = 'XXX.XX.XX.XXX', port = XXXXX, strict_version_check = FALSE)
train_hex <- as.h2o(iris, destination_frame = "train_hex")
|=====================================================| 100%
Error in class(obj) <- "rs.scalar" : attempt to set an attribute on NULL
如果我尝试不分配它,这就是错误。
as.h2o(iris, destination_frame = "train_hex")
|===================================================| 100%
Sepal.Length Sepal.Width Petal.Length Petal.Width Species
1 5.1 3.5 1.4 0.2 setosa
2 4.9 3.0 1.4 0.2 setosa
3 4.7 3.2 1.3 0.2 setosa
4 4.6 3.1 1.5 0.2 setosa
5 5.0 3.6 1.4 0.2 setosa
6 5.4 3.9 1.7 0.4 setosa
Error in if (ncol(x) > 1) " columns]" else " column]" :
missing value where TRUE/FALSE needed
这里有一些关于我的环境和计算情况的附加信息。
版本 0.99.896 – © 2009-2016 RStudio, Inc.
R is connected to the H2O cluster:
H2O cluster uptime: 49 days 22 hours
H2O cluster version: 3.9.1.99999
H2O cluster name: H2O_29276
H2O cluster total nodes: 1
H2O cluster total memory: 17.29 GB
H2O cluster total cores: 24
H2O cluster allowed cores: 4
H2O cluster healthy: TRUE
H2O Connection ip:
H2O Connection port:
H2O Connection proxy: NA
R Version: R version 3.2.3 (2015-12-10)
R version 3.2.3 (2015-12-10)
Platform: x86_64-redhat-linux-gnu (64-bit)
Running under: Red Hat Enterprise Linux Server release 6.4 (Santiago)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets
[6] methods base
other attached packages:
[1] h2o_3.8.2.6 statmod_1.4.24 pacman_0.4.1
loaded via a namespace (and not attached):
[1] tools_3.2.3 RCurl_1.95-4.8 jsonlite_0.9.20
[4] bitops_1.0-6
【问题讨论】:
-
你使用
RStudio吗?那里报告了错误,但不在基础 R 中,请参阅 here -
你能展示更多的代码,或者一个完整的可重现的例子吗?或者更多关于你的环境?它对我有用(在 RStudio 中,在 Linux 上,64 位)
-
抱歉耽搁了@DarrenCook。我已经添加了我的环境信息。我刚刚又试了一次,还是不行。任何来自 h2o 的人潜伏并可以提供帮助?
-
@Scott 没有明显的问题。您使用的代码是什么?见stackoverflow.com/help/mcve
-
我还尝试按照this 卸载、重新安装软件包。安装后我收到消息
Error in fetch(key) : lazy-load database '/home/Scott.Jacobs/R/x86_64-redhat-linux-gnu-library/3.2/h2o/help/h2o.rdb' is corrupt In addition: Warning message: In fetch(key) : internal error -3 in R_decompress1