2017-01-30 49 views
1

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!错误中的R

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      
       )} 

运行模式,同时有不是减少ntrees或MAX_DEPTH解决此之外的任何其他方式?

回答

0

是的,无论是减少功能或nbins_cat(确定第一最优nbins_cats)或增加RAM容量,最高要求的深度是非常高的,你必须降低这一点,