是否可以通过 mlr 为 h2o 模型设置种子?我只能找到如何直接在 h2o 中执行此操作,例如
gbm_w_seed_2 <- h2o.gbm(x = predictors, y = response, training_frame = train,
validation_frame = valid, col_sample_rate =.7 ,
seed = 1234)
最佳答案
是的,这些作为学习器参数公开。例如:
lrn = makeLearner("classif.h2ogbm", par.vals = list(seed = 123))
关于r - 通过 R 中的 mlr 设置 h2o 的种子,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45029437/