A CallbackAsync accesses and modifies data during the optimization via the ContextAsync
.
See the section on active bindings for a list of modifiable objects.
See callback_async()
for a list of stages which access ContextAsync
.
Details
Changes to $instance
and $optimizer
in the stages executed on the workers are not reflected in the main process.
Super class
mlr3misc::Context
-> ContextAsync
Public fields
instance
optimizer
(Optimizer).
Active bindings
xs
(list())
The point to be evaluated ininstance$.eval_point()
.xs_trafoed
(list())
The transformed point to be evaluated ininstance$.eval_point()
.extra
(list())
Additional information of the point to be evaluated ininstance$.eval_point()
.ys
(list())
The result of the evaluation ininstance$.eval_point()
.result_xdt
(data.table::data.table)
The xdt passed toinstance$assign_result()
.result_y
(
numeric(1)
)
The y passed toinstance$assign_result()
. Only available for single criterion optimization.result_ydt
(data.table::data.table)
The ydt passed toinstance$assign_result()
. Only available for multi criterion optimization.result_extra
(data.table::data.table)
Additional information about the result passed toinstance$assign_result()
.result
(data.table::data.table)
The result of the optimization ininstance$assign_result()
.
Methods
Inherited methods
Method new()
Creates a new instance of this R6 class.
Usage
ContextAsync$new(inst, optimizer)
Arguments
inst
optimizer
(Optimizer).