简体   繁体   中英

Set seed for h2o via mlr in R

Is it possible to set a seed for h2o models via mlr? I could only find how to do it in h2o directly, eg

gbm_w_seed_2 <- h2o.gbm(x = predictors, y = response, training_frame = train,
                        validation_frame = valid, col_sample_rate =.7 ,
                        seed = 1234)

Yes, these are exposed as learner parameters. For example:

lrn = makeLearner("classif.h2ogbm", par.vals = list(seed = 123))

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