0 votes
1 view
in Machine Learning by (13.5k points)

I'm new to R and H2O and I have tried to find a way to convert r data frame to an h2o object. I have spent some time research on how to do this with no luck. Another way around is possible and well documented as follows.

prosPath = system.file("extdata", "prostate.csv", package="h2o")

prostate.hex = h2o.importFile(localH2O, path = prosPath)

prostate.data.frame <- as.data.frame(prostate.hex)

But what I want is the complete opposite of this. I want to convert r "prostate.data.frame" data object converted to the h2o object named "prostate.hex". Thanks in advance.

1 Answer

0 votes
by (33.1k points)

As per h2o version 3.6.0.8, it does not require any parameters. You can simply pass the data from the function.

For example:

iris.hex <- as.h2o(iris)

Hope this answer helps you. For more insights, study Data Structures In R

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...