2017-01-30 82 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容量,最高要求的深度是非常高的,你必須降低這一點,