简体   繁体   中英

Error while running a model in R

Error: water.exceptions.H2OModelBuilderIllegalArgumentException: Illegal argument(s) for DRF model: 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!

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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