Callbacks allow to customize the behavior of processes in mlr3 packages. The following packages implement callbacks:
Callback is an abstract base class.
A subclass inherits from Callback and adds stages as public members.
Names of stages should start with
For each subclass a function should be implemented to create the callback.
For an example on how to implement such a function see
callback_optimization() in bbotk.
Callbacks are executed at stages using the function
A Context defines which information can be accessed from the callback.
Identifier of the callback.
Label for this object. Can be used in tables, plot and text output instead of the ID.
String in the format
[pkg]::[topic]pointing to a manual page for this object. Defaults to
NA, but can be set by child classes.
A callback can write data into the state.
Creates a new instance of this R6 class.
Callback$new(id, label = NA_character_, man = NA_character_)
Helper for print outputs.
Opens the corresponding help page referenced by field
Call the specific stage for a given context.