In this example, it is expected that the second archive tries cp values of 0.1, 0.2 and 0.3. This happens because clone(deep = TRUE) clones the private$.param_set separately and it ends up not pointing to private$.optimizer's $param_set any more. A way to solve this would be for TunerFromOptimizer to overwrite the param_set active binding and always returning private$.optimizer$param_set here.
In this example, it is expected that the second archive tries
cp
values of 0.1, 0.2 and 0.3. This happens becauseclone(deep = TRUE)
clones theprivate$.param_set
separately and it ends up not pointing toprivate$.optimizer
's$param_set
any more. A way to solve this would be forTunerFromOptimizer
to overwrite theparam_set
active binding and always returningprivate$.optimizer$param_set
here.