ContextAsyncTuning: Asynchronous Tuning Context

ContextAsyncTuningR Documentation

Asynchronous Tuning Context

Description

A CallbackAsyncTuning accesses and modifies data during the optimization via the ContextAsyncTuning. See the section on active bindings for a list of modifiable objects. See callback_async_tuning() for a list of stages that access ContextAsyncTuning.

Details

Changes to ⁠$instance⁠ and ⁠$optimizer⁠ in the stages executed on the workers are not reflected in the main process.

Super classes

mlr3misc::Context -> bbotk::ContextAsync -> ContextAsyncTuning

Active bindings

xs_learner

(list())
The hyperparameter configuration currently evaluated. Contains the values on the learner scale i.e. transformations are applied.

resample_result

(mlr3::BenchmarkResult)
The resample result of the hyperparameter configuration currently evaluated.

aggregated_performance

(list())
Aggregated performance scores and training time of the evaluated hyperparameter configuration. This list is passed to the archive. A callback can add additional elements which are also written to the archive.

result_learner_param_vals

(list())
The learner parameter values passed to instance$assign_result().

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
ContextAsyncTuning$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.


mlr-org/mlr3tuning documentation built on April 14, 2025, 1 a.m.