Skip to contents

The ContextOptimization allows mlr3misc::Callbacks to access and modify data while optimization. See section on active bindings for a list of modifiable objects. See callback_optimization() for a list of stages which access ContextOptimization.

Super class

mlr3misc::Context -> ContextOptimization

Public fields

instance

(OptimInstance).

optimizer

(Optimizer).

Active bindings

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.

Methods

Inherited methods


Method new()

Creates a new instance of this R6 class.

Usage

ContextOptimization$new(instance, optimizer)

Arguments

instance

(OptimInstance).

optimizer

(Optimizer).


Method clone()

The objects of this class are cloneable with this method.

Usage

ContextOptimization$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.