A lightweight wrapper around a ParamSet and a data.table::data.table()
, where the
latter is a design of configurations produced from the former - e.g.,
by calling a generate_design_grid()
or by sampling.
param_set
(ParamSet).
data
(data.table::data.table()
)
Stored data
.
new()
Creates a new instance of this R6 class.
Design$new(param_set, data, remove_dupl)
param_set
(ParamSet).
data
(data.table::data.table()
)
Stored data
.
remove_dupl
(logical(1)
)
Remove duplicates?
format()
Helper for print outputs.
Design$format()
print()
Printer.
Design$print(...)
...
(ignored).
transpose()
Converts data
into a list of lists of row-configurations,
possibly removes NA
entries of inactive parameter values due to unsatisfied dependencies,
and possibly calls the trafo
function of the ParamSet.
Design$transpose(filter_na = TRUE, trafo = TRUE)
filter_na
(logical(1)
)
Should NA
entries of inactive parameter values due to unsatisfied
dependencies be removed?
trafo
(logical(1)
)
Should the trafo
function of the ParamSet be called?
clone()
The objects of this class are cloneable with this method.
Design$clone(deep = FALSE)
deep
Whether to make a deep clone.