I am trying to get a sparse matrix in H2O and I was wondering if this is possible. Suppose we have:
test <- Matrix(c(1,0,0,1,1,1,1,0,1), nrow = 3, sparse = TRUE)
and assuming my local H2O is localH2O , I cannot do the following:
as.h2o(test)
Throws an error: cannot coerce class "structure("dgCMatrix", package = "Matrix")" to a data.frame . This seems pretty logical, however, assuming the test is so large that I cannot convert it to a dataframe, how can I load it into H2O? Using sparse matrix representation is only 500 MB.
How can I load a sparse matrix in H2O?
r sparse-matrix h2o
Snowflake
source share