Hierarchical sampling for arbitrary param sets with dependencies, where the user specifies 1D samplers per param.
Dependencies are topologically sorted, parameters are then sampled in topological order,
and if dependencies do not hold, values are set to NA
in the resulting data.table
.
paradox::Sampler
-> SamplerHierarchical
samplers
(list()
)
List of Sampler1D
objects that gives a Sampler for each dimension in the param_set
.
Inherited methods
new()
Creates a new instance of this R6 class.
SamplerHierarchical$new(param_set, samplers)
param_set
(ParamSet
)
The ParamSet
to associated with this SamplerHierarchical
.
samplers
(list()
)
List of Sampler1D
objects that gives a Sampler for each dimension in the param_set
.
clone()
The objects of this class are cloneable with this method.
SamplerHierarchical$clone(deep = FALSE)
deep
Whether to make a deep clone.
Other Sampler:
Sampler
,
Sampler1D
,
Sampler1DCateg
,
Sampler1DNormal
,
Sampler1DRfun
,
Sampler1DUnif
,
SamplerJointIndep
,
SamplerUnif