Open
Description
mlr3
's $configure()
allows to set both hyperparameters and fields.
It would be nice if GraphLearner
provided its own $configure()
method that also allows to set fields of PipeOp
s, something like
graph = po("pca") %>>% lrn("classif.rpart")
glrn = as_learner(graph)
glrn$configure(
classif.rpart.predict_type = "prob"
)
Currently this does not work, because glrn
does neither have a field nor parameter called classif.rpart.predict_type
.
Analogously, it would be nice if the same was possible for Graph
s, which currently don't have a $configure()
method.