Closed ZhangDengwei closed 1 year ago
Sorry for the late reply (holiday). There is a bug. It should be possible to set a tuning space as the search space. You can use a workaround for now:
xgb_tuned_2 = AutoTuner$new(lts(xgb_learner_tuning), inner_resampling, measure, terminator, xgb_tuner, store_tuning_instance = TRUE)
So wrap the learner with lts()
. This applies the search space to the learner directly. And don't pass a search space in AutoTuner$new()
.
Works in the dev version now. Solved by #352.
Hi,
I would like to adopt the predefined search space from the package
mlr3tuningspaces
, but I have no idea how to implant it into the benchmarking module. My script is as follows:By this, I will receive an error, as follows, because the class
TuningSpace
frommlr3tuningspaces
cannot directly be used.I have no idea how to pass the class
TuningSpace
to classParamSet
. Any suggestion would be greatly appreciated!