CallbackAsync {bbotk}R Documentation

Create Asynchronous Optimization Callback

Description

Specialized mlr3misc::Callback for asynchronous optimization. Callbacks allow to customize the behavior of processes in bbotk. The callback_async() function creates a CallbackAsync. Predefined callbacks are stored in the dictionary mlr_callbacks and can be retrieved with clbk(). For more information on optimization callbacks see callback_async().

Super class

mlr3misc::Callback -> CallbackAsync

Public fields

on_optimization_begin

(⁠function()⁠)
Stage called at the beginning of the optimization in the main process. Called in Optimizer$optimize().

on_worker_begin

(⁠function()⁠)
Stage called at the beginning of the optimization on the worker. Called in the worker loop.

on_worker_end

(⁠function()⁠)
Stage called at the end of the optimization on the worker. Called in the worker loop.

on_result

(⁠function()⁠)
Stage called after result are written. Called in OptimInstance$assign_result().

on_optimization_end

(⁠function()⁠)
Stage called at the end of the optimization in the main process. Called in Optimizer$optimize().

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
CallbackAsync$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


[Package bbotk version 1.0.1 Index]