内存利用率 R h2o

Memory Utilization R h2o

我正在研究泰坦尼克号。但是,我 运行 遇到了一个问题,模型不再 运行 而是返回一个似乎与内存分配有关的错误。

Error: water.exceptions.H2OModelBuilderIllegalArgumentException: Illegal argument(s) for DRF model: DRF_model_R_1542172359909_24373_cv_1.  Details: ERRR on field: _ntrees: The tree model will not fit in the driver node's memory (2.4 KB per tree x 500 > Zero  ) - try decreasing ntrees and/or max_depth or increasing min_rows!

这是我的代码示例:

 y<-"Survived"
x<-setdiff(names(newtrain_imp),y)
rf_mod<-h2o.randomForest(x,y,train_set,
                         nfolds = 10,
                         keep_cross_validation_predictions = T,
                         seed=233,
                         mtries = 8,#sampling default-1 set to al
                         ntrees = 500,
                         max_depth = 12,
                         validation_frame = validate_set,
                         binomial_double_trees = T)

在使用 h2o.init(max_mem_size = 8G) 启动 h2o 期间,请在此处设置您希望 h2o 使用的 RAM 量。