View source: R/CallbackAsyncFSelect.R
| callback_async_fselect | R Documentation |
Function to create a CallbackAsyncFSelect.
Predefined callbacks are stored in the dictionary mlr_callbacks and can be retrieved with clbk().
Feature selection callbacks can be called from different stages of the feature selection process.
The stages are prefixed with on_*.
Start Feature Selection
- on_optimization_begin
Start Worker
- on_worker_begin
Start Optimization on Worker
- on_optimizer_before_eval
Start Evaluation
- on_eval_after_xs
Start Resampling Iteration
- on_resample_begin
- on_resample_before_train
- on_resample_before_predict
- on_resample_end
End Resampling Iteration
- on_eval_after_resample
- on_eval_before_archive
End Evaluation
- on_optimizer_after_eval
End Optimization on Worker
- on_worker_end
End Worker
- on_fselect_result_begin
- on_result_begin
- on_result_end
- on_optimization_end
End Feature Selection
See also the section on parameters for more information on the stages. A feature selection callback works with ContextAsyncFSelect.
callback_async_fselect(
id,
label = NA_character_,
man = NA_character_,
on_optimization_begin = NULL,
on_worker_begin = NULL,
on_optimizer_before_eval = NULL,
on_eval_after_xs = NULL,
on_resample_begin = NULL,
on_resample_before_train = NULL,
on_resample_before_predict = NULL,
on_resample_end = NULL,
on_eval_after_resample = NULL,
on_eval_before_archive = NULL,
on_optimizer_after_eval = NULL,
on_worker_end = NULL,
on_fselect_result_begin = NULL,
on_result_begin = NULL,
on_result_end = NULL,
on_result = NULL,
on_optimization_end = NULL
)
id |
( |
label |
( |
man |
( |
on_optimization_begin |
( |
on_worker_begin |
( |
on_optimizer_before_eval |
( |
on_eval_after_xs |
( |
on_resample_begin |
( |
on_resample_before_train |
( |
on_resample_before_predict |
( |
on_resample_end |
( |
on_eval_after_resample |
( |
on_eval_before_archive |
( |
on_optimizer_after_eval |
( |
on_worker_end |
( |
on_fselect_result_begin |
( |
on_result_begin |
( |
on_result_end |
( |
on_result |
( |
on_optimization_end |
( |
When implementing a callback, each function must have two arguments named callback and context.
A callback can write data to the state ($state), e.g. settings that affect the callback itself.
Feature selection callbacks access ContextAsyncFSelect and mlr3::ContextResample.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.