Inherited methods
Method new()
Creates a new instance of this R6 class.
Usage
AutoFSelector$new(
fselector,
learner,
resampling,
measure = NULL,
terminator,
store_fselect_instance = TRUE,
store_benchmark_result = TRUE,
store_models = FALSE,
check_values = FALSE,
callbacks = list(),
ties_method = "least_features"
)
Arguments
fselector
(FSelector)
Optimization algorithm.
learner
(mlr3::Learner)
Learner to optimize the feature subset for.
resampling
(mlr3::Resampling)
Resampling that is used to evaluated the performance of the feature subsets.
Uninstantiated resamplings are instantiated during construction so that all feature subsets are evaluated on the same data splits.
Already instantiated resamplings are kept unchanged.
measure
(mlr3::Measure)
Measure to optimize. If NULL
, default measure is used.
terminator
(Terminator)
Stop criterion of the feature selection.
store_fselect_instance
(logical(1)
)
If TRUE
(default), stores the internally created FSelectInstanceSingleCrit with all intermediate results in slot $fselect_instance
.
Is set to TRUE
, if store_models = TRUE
store_benchmark_result
(logical(1)
)
Store benchmark result in archive?
store_models
(logical(1)
).
Store models in benchmark result?
check_values
(logical(1)
)
Check the parameters before the evaluation and the results for
validity?
callbacks
(list of CallbackFSelect)
List of callbacks.
ties_method
(character(1)
)
The method to break ties when selecting sets while optimizing and when selecting the best set.
Can be "least_features"
or "random"
.
The option "least_features"
(default) selects the feature set with the least features.
If there are multiple best feature sets with the same number of features, one is selected randomly.
The random
method returns a random feature set from the best feature sets.
Ignored if multiple measures are used.
Method base_learner()
Extracts the base learner from nested learner objects like GraphLearner
in mlr3pipelines.
If recursive = 0
, the (tuned) learner is returned.
Usage
AutoFSelector$base_learner(recursive = Inf)
Arguments
recursive
(integer(1)
)
Depth of recursion for multiple nested objects.
Method importance()
The importance scores of the final model.
Usage
AutoFSelector$importance()
Method selected_features()
The selected features of the final model.
These features are selected internally by the learner.
Usage
AutoFSelector$selected_features()
Method oob_error()
The out-of-bag error of the final model.
Usage
AutoFSelector$oob_error()
Method loglik()
The log-likelihood of the final model.
Usage
AutoFSelector$loglik()
Usage
AutoFSelector$print()
Method clone()
The objects of this class are cloneable with this method.
Usage
AutoFSelector$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.