View source: R/CallbackAsync.R
callback_async | R Documentation |
Function to create a CallbackAsync.
Optimization callbacks can be called from different stages of optimization process.
The stages are prefixed with on_*
.
Start Optimization - on_optimization_begin Start Worker - on_worker_begin Start Optimization on Worker - on_optimizer_before_eval - on_optimizer_after_eval End Optimization on Worker - on_worker_end End Worker - on_result - on_optimization_end End Optimization
See also the section on parameters for more information on the stages. A optimization callback works with ContextAsync.
callback_async(
id,
label = NA_character_,
man = NA_character_,
on_optimization_begin = NULL,
on_worker_begin = NULL,
on_optimizer_before_eval = NULL,
on_optimizer_after_eval = NULL,
on_worker_end = NULL,
on_result = NULL,
on_optimization_end = NULL
)
id |
( |
label |
( |
man |
( |
on_optimization_begin |
( |
on_worker_begin |
( |
on_optimizer_before_eval |
( |
on_optimizer_after_eval |
( |
on_worker_end |
( |
on_result |
( |
on_optimization_end |
( |
A callback can write data to its state ($state
), e.g. settings that affect the callback itself.
The ContextAsync allows to modify the instance, archive, optimizer and final result.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.