FSelector {mlr3fselect} | R Documentation |
FSelector
Description
The 'FSelector“ implements the optimization algorithm.
Details
FSelector
is an abstract base class that implements the base functionality each fselector must provide.
Resources
There are several sections about feature selection in the mlr3book.
Learn more about fselectors.
The gallery features a collection of case studies and demos about optimization.
Utilize the built-in feature importance of models with Recursive Feature Elimination.
Run a feature selection with Shadow Variable Search.
Public fields
id
(
character(1)
)
Identifier of the object. Used in tables, plot and text output.
Active bindings
param_set
paradox::ParamSet
Set of control parameters.properties
(
character()
)
Set of properties of the fselector. Must be a subset ofmlr_reflections$fselect_properties
.packages
(
character()
)
Set of required packages. Note that these packages will be loaded viarequireNamespace()
, and are not attached.label
(
character(1)
)
Label for this object. Can be used in tables, plot and text output instead of the ID.man
(
character(1)
)
String in the format[pkg]::[topic]
pointing to a manual page for this object. The referenced help package can be opened via method$help()
.
Methods
Public methods
Method new()
Creates a new instance of this R6 class.
Usage
FSelector$new( id = "fselector", param_set, properties, packages = character(), label = NA_character_, man = NA_character_ )
Arguments
id
(
character(1)
)
Identifier for the new instance.param_set
paradox::ParamSet
Set of control parameters.properties
(
character()
)
Set of properties of the fselector. Must be a subset ofmlr_reflections$fselect_properties
.packages
(
character()
)
Set of required packages. Note that these packages will be loaded viarequireNamespace()
, and are not attached.label
(
character(1)
)
Label for this object. Can be used in tables, plot and text output instead of the ID.man
(
character(1)
)
String in the format[pkg]::[topic]
pointing to a manual page for this object. The referenced help package can be opened via method$help()
.
Method format()
Helper for print outputs.
Usage
FSelector$format(...)
Arguments
...
(ignored).
Returns
(character()
).
Method print()
Print method.
Usage
FSelector$print()
Returns
(character()
).
Method help()
Opens the corresponding help page referenced by field $man
.
Usage
FSelector$help()
Method clone()
The objects of this class are cloneable with this method.
Usage
FSelector$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.
See Also
Other FSelector:
mlr_fselectors
,
mlr_fselectors_design_points
,
mlr_fselectors_exhaustive_search
,
mlr_fselectors_genetic_search
,
mlr_fselectors_random_search
,
mlr_fselectors_rfe
,
mlr_fselectors_rfecv
,
mlr_fselectors_sequential
,
mlr_fselectors_shadow_variable_search