ContextBatch {bbotk} | R Documentation |
A CallbackBatch accesses and modifies data during the optimization via the ContextBatch
.
See the section on active bindings for a list of modifiable objects.
See callback_batch()
for a list of stages which that ContextBatch
.
mlr3misc::Context
-> ContextBatch
instance
optimizer
(Optimizer).
xdt
(data.table::data.table)
The points of the latest batch.
Contains the values in the search space i.e. transformations are not yet applied.
result
(data.table::data.table)
The result of the optimization.
new()
Creates a new instance of this R6 class.
ContextBatch$new(inst, optimizer)
inst
optimizer
(Optimizer).
clone()
The objects of this class are cloneable with this method.
ContextBatch$clone(deep = FALSE)
deep
Whether to make a deep clone.