ContextAsync | R Documentation |
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
.
Changes to $instance
and $optimizer
in the stages executed on the workers are not reflected in the main process.
mlr3misc::Context
-> ContextAsync
instance
(OptimInstance).
optimizer
(Optimizer).
xs
(list())
The point to be evaluated in instance$.eval_point()
.
xs_trafoed
(list())
The transformed point to be evaluated in instance$.eval_point()
.
extra
(list())
Additional information of the point to be evaluated in instance$.eval_point()
.
ys
(list())
The result of the evaluation in instance$.eval_point()
.
result_xdt
(data.table::data.table)
The xdt passed to instance$assign_result()
.
result_y
(numeric(1)
)
The y passed to instance$assign_result()
.
Only available for single criterion optimization.
result_ydt
(data.table::data.table)
The ydt passed to instance$assign_result()
.
Only available for multi criterion optimization.
result_extra
(data.table::data.table)
Additional information about the result passed to instance$assign_result()
.
result
(data.table::data.table)
The result of the optimization in instance$assign_result()
.
new()
Creates a new instance of this R6 class.
ContextAsync$new(inst, optimizer)
inst
(OptimInstance).
optimizer
(Optimizer).
clone()
The objects of this class are cloneable with this method.
ContextAsync$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.