Closed pfistfl closed 4 years ago
The problem is, that reticulate
overloads the $
operator and therefore the access errors (and does not point to NULL
).
Do we really want to to solve this in paradox? I think the go to solution is just construct the objects in the objective or in the trafo.
My preferred solution would be to make the param a character and then just call get(a, mode = "function")()
to construct the object. You are more flexible if you write expressions, though.
One problem here would be that then all extra args would also need to become parameters
i.e. optimizer_adam()
has 8 args, which would then really blow up the param space.
What about
ps$values = list(a = quote(optimizer_adam(foo = 1, bar = 2)))
Solved via #277
Error most likely comes from Line 449 in https://github.com/mlr-org/paradox/blob/master/R/ParamSet.R
This currently breaks
mlr3keras
:)