【发布时间】:2017-10-31 17:37:40
【问题描述】:
我正在使用 H2O 和尺寸为 ~700,000 x ~800,000 的 SVMLight 稀疏矩阵。磁盘上的文件大小约为 800MB。但是将其导入 H2O 会占用超过 300GB 的 RAM?该过程也需要很长时间(约 15 分钟)才能完成。
相比之下,我可以使用 Matrix 包相当快地创建稀疏矩阵并将其存储在 RAM 中。在这种情况下,稀疏矩阵需要大约 1.2GB 的 RAM。
下面是我的代码:
library(h2o)
h2o.init(nthreads=-1,max_mem_size = "512g")
x <- h2o.importFile('test2.svmlight', parse = TRUE)
这是我的系统:
openjdk version "1.8.0_121"
OpenJDK Runtime Environment (build 1.8.0_121-b13)
OpenJDK 64-Bit Server VM (build 25.121-b13, mixed mode)
Starting H2O JVM and connecting: .. Connection successful!
R is connected to the H2O cluster:
H2O cluster uptime: 2 seconds 76 milliseconds
H2O cluster version: 3.14.0.3
H2O cluster version age: 1 month and 8 days
H2O cluster name: H2O_started_from_R_ra2816_fhv677
H2O cluster total nodes: 1
H2O cluster total memory: 455.11 GB
H2O cluster total cores: 24
H2O cluster allowed cores: 24
H2O cluster healthy: TRUE
H2O Connection ip: localhost
H2O Connection port: 54321
H2O Connection proxy: NA
H2O Internal Security: FALSE
H2O API Extensions: XGBoost, Algos, AutoML, Core V3, Core V4
R Version: R version 3.4.1 (2017-06-30)
我将不胜感激任何建议,因为我真的很喜欢 H2O,并希望将它用于这个项目。
【问题讨论】:
标签: r sparse-matrix h2o