Function to optimize the feature set of a mlr3::Learner.

fselect(
method,
learner,
resampling,
measure,
term_evals = NULL,
term_time = NULL,
...
)

## Arguments

method (character(1)) Key to retrieve fselector from mlr_fselectors dictionary. (mlr3::Task) Task to operate on. (mlr3::Resampling) Uninstantiated resamplings are instantiated during construction so that all configurations are evaluated on the same data splits. (mlr3::Measure) Measure to optimize. (integer(1)) Number of allowed evaluations. (integer(1)) Maximum allowed time in seconds. (named list()) Named arguments to be set as parameters of the fselector.

## Value

FSelectInstanceSingleCrit

## Examples

task = tsk("pima")

instance = fselect(
method = "random_search",
task$select(instance$result_feature_set)