Dictionary storing objects of class
The dictionary contains a collection of often-used graph structures, and it's aim
is solely to make often-used functions more accessible.
Graph has an associated help page, which can be accessed via
R6Class object inheriting from
Methods inherited from
Dictionary, as well as:
value to the dictionary with key
overwriting a previously stored item.
library(mlr3) lrn = lrn("regr.rpart") task = mlr_tasks$get("boston_housing") # Robustify the learner for the task. gr = pipeline_robustify(task, lrn) %>>% po("learner", lrn) # or equivalently gr = mlr_graphs$get("robustify", task = task, learner = lrn) %>>% po(lrn) # or equivalently gr = ppl("robustify", task, lrn) %>>% po("learner", lrn) # all Graphs currently in the dictionary: as.data.table(mlr_graphs)#> key #> 1: bagging #> 2: branch #> 3: greplicate #> 4: ovr #> 5: robustify #> 6: targettrafo