Skip to contents

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.

Super class

mlr3misc::Context -> ContextBatch

Public fields

instance

(OptimInstance).

optimizer

(Optimizer).

Active bindings

xdt

(data.table::data.table)
The points of the latest batch in instance$eval_batch(). Contains the values in the search space i.e. transformations are not yet applied.

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().

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage

ContextBatch$new(inst, optimizer)

Arguments

inst

(OptimInstance).

optimizer

(Optimizer).


Method clone()

The objects of this class are cloneable with this method.

Usage

ContextBatch$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.