Converting R dataframe to H2O Frame without writing to disk

不羁岁月 提交于 2019-12-10 18:17:11

问题


I know the as.h2o function from h2o library converts an R data.frame to an H2O frame. Two questions:

  1. Does as.h2o() write data to disk during conversion? How long is this data stored?
  2. Are there other options that avoids the temp step of writing to disk?

回答1:


The exact path of running as.h2o on a data.frame, df :

path <- write.csv(df)
h2o.upload(path)
remove.file(path)

We temporarily write to disk the data.frame and then subsequently upload rather than import the file into H2O and as soon as the file is uploaded we delete the temporary frame. There is no cleaner alternative to not writing to disk.



来源:https://stackoverflow.com/questions/33624415/converting-r-dataframe-to-h2o-frame-without-writing-to-disk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!