我现在正在学习h2o包,
我从CRAN安装了h2o软件包,并且无法运行此代码
## To import small iris data file from H\ :sub:`2`\ O's package
irisPath = system.file("extdata", "iris.csv", package="h2o")
iris.hex = h2o.importFile(localH2O, path = irisPath, key = "iris.hex")
我收到以下错误,
h2o.importFile(localH2O,path = irisPath,key ="iris.hex")出错:未使用的参数(key ="iris.hex")
http://h2o-release.s3.amazonaws.com/h2o/rel-lambert/5/docs-website/Ruser/rtutorial.html
此代码不再有效的原因是 2015 年从 H2O 2.0 到 H2O 3.0 的 API 发生了重大更改。您发现的文档(可能通过 Google 搜索)适用于非常旧版本的 H2O 2.0。最新的文档总是可以在http://docs.h2o.ai/h2o/latest-stable/h2o-docs/index.html找到
回答您的错误问题:
H2O 对该文档进行了一些更改。读取iris文件的过程如下:
iris.hex = h2o.importFile(path = irisPath, destination_frame = "iris.hex")
你的第二个问题(和第三个问题)违反了SO规则。但您会在下面找到一个简短的资源列表:
至于你的第三个问题,请阅读他们的“Why H2O page”。