This CallbackResample extracts information from the model after training with a user-defined function. This way information can be extracted from the model without saving the model (store_models = FALSE). The fun must be a function that takes a learner as input and returns the extracted information as named list (see example). The callback is very helpful to call $selected_features(), $importance(), $oob_error() on the learner.
Arguments
fun: (function(learner))
Function to extract information from the learner. The function must have the argument learner. The function must return a named list.