Removes features from
Task depending on a
selector parameter gives the features to keep.
Selector for selectors that are provided and how to write custom
R6Class object inheriting from
PipeOpSelect$new(id = "select", param_vals = list())
Identifier of resulting object, default
param_vals :: named
List of hyperparameter settings, overwriting the hyperparameter settings that would otherwise be set during construction. Default
Input and output channels are inherited from
The output is the input
Task with features removed that were not selected by the
$state is a named
list with the
$state elements inherited from
PipeOpTaskPreproc, as well as:
A vector of all feature names that are kept (i.e. not dropped) in the
Task. Initialized to
Selector function, takes a
Task as argument and returns a
of features to keep.
Selector for example functions. Defaults to
Only fields inherited from
Only methods inherited from
library("mlr3") task = tsk("boston_housing") pos = po("select") pos$param_set$values$selector = selector_all() pos$train(list(task))[]$feature_names pos$param_set$values$selector = selector_type("factor") pos$train(list(task))[]$feature_names pos$param_set$values$selector = selector_invert(selector_type("factor")) pos$train(list(task))[]$feature_names pos$param_set$values$selector = selector_grep("^r") pos$train(list(task))[]$feature_names
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.