简体   繁体   English

在R中运行模型时出错

[英]Error while running a model in R

Error: water.exceptions.H2OModelBuilderIllegalArgumentException: Illegal argument(s) for DRF model: DRF_model_R_1485775621321_2. 错误:water.exceptions.H2OModelBuilderIllegalArgumentException:DRF模型的非法参数:DRF_model_R_1485775621321_2。 Details: ERRR on field: _ntrees: The tree model will not fit in the driver node's memory (3.9 MB per tree x 400 > 1.50 GB) - try decreasing ntrees and/or max_depth or increasing min_rows! 详细信息:字段上的ERRR:_ntrees:树模型不适合驱动程序节点的内存(每棵树3.9 MB x 400> 1.50 GB) - 尝试减少ntree和/或max_depth或增加min_rows!

local=h2o.init(nthreads=2,max_mem_size='5G')
data_r=as.h2o(data.matrix(data_tr))
rn_clf=h2o.randomForest(feature.names,
                'log.Sales',
                training_frame=data_r,
                ntrees=400,
                max_depth=28,
                nbins_cats = 1115                    
               )}

Is there any other way to resolve this other than decreasing ntrees or max_depth? 除了减少ntrees或max_depth之外,还有其他方法可以解决这个问题吗?

是的,无论是减少功能还是nbins_cat(首先确定最佳nbins_cats)或增加RAM大小,最大深度非常高你必须减少这个,

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM