Inherited methods
Method new()
Creates a new instance of this R6 class.
Usage
FSelectInstanceSingleCrit$new(
task,
learner,
resampling,
measure,
terminator,
store_benchmark_result = TRUE,
store_models = FALSE,
check_values = FALSE,
callbacks = list(),
ties_method = "least_features"
)
Arguments
task
(mlr3::Task)
Task to operate on.
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_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 assign_result()
The FSelector writes the best found feature subset and estimated performance value here.
For internal use.
Usage
FSelectInstanceSingleCrit$assign_result(xdt, y)
Arguments
xdt
(data.table::data.table()
)
x values as data.table
. Each row is one point. Contains the value in
the search space of the FSelectInstanceMultiCrit object. Can contain
additional columns for extra information.
y
(numeric(1)
)
Optimal outcome.
Printer.
Usage
FSelectInstanceSingleCrit$print(...)
Method clone()
The objects of this class are cloneable with this method.
Usage
FSelectInstanceSingleCrit$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.