我正在关注revolutionanalytics的教程,并且在教程开始时
library(h2o) # Load H2O library
localH2O = h2o.init() # initial H2O locl instance
# Upload iris file from the H2O package into the H2O local instance
iris.hex <- h2o.uploadFile(localH2O, path = system.file("extdata", "iris.csv",
package="h2o"), key = "iris.hex")
summary(iris.hex)
当我使用 H2O 2.0.0.9 在 R 3.1.0 x64 for windows(配置如下)中运行命令时,我得到以下输出:
> library(h2o) # Load H2O library
> localH2O = h2o.init() # initial H2O locl instance
Successfully connected to http://127.0.0.1:54321
R is connected to H2O cluster:
Error in names(durationVector) = c("days", "hours", "minutes", "seconds", :
'names' attribute [5] must be the same length as the vector [0]
iris.hex <- h2o.uploadFile(localH2O, path = system.file("extdata", "iris.csv", package="h2o"),
key = "iris.hex")
Error in h2o.uploadFile.FV(object, path, key, parse, header, sep, col.names, :
object 'localH2O' not found
我无法弄清楚如何解决这个问题。任何论坛都没有这个问题。我知道该程序正在尝试将不同大小的向量分配给不同大小的数组。但是我该如何解决这个问题并让它发挥作用呢?
R配置:
platform x86_64-w64-mingw32
arch x86_64
os mingw32
system x86_64, mingw32
status
major 3
minor 1.0
year 2014
month 04
day 10
svn rev 65387
language R
version.string R version 3.1.0 (2014-04-10)
nickname Spring Dance