| cpoSelector | R Documentation |
CPO that Selects Features
cpoSelector( selection, id, export = "export.default", affect.type = NULL, affect.index = integer(0), affect.names = character(0), affect.pattern = NULL, affect.invert = FALSE, affect.pattern.ignore.case = FALSE, affect.pattern.perl = FALSE, affect.pattern.fixed = FALSE )
selection |
|
id |
[ |
export |
[ |
affect.type |
[ |
affect.index |
[ |
affect.names |
[ |
affect.pattern |
[ |
affect.invert |
[ |
affect.pattern.ignore.case |
[ |
affect.pattern.perl |
[ |
affect.pattern.fixed |
[ |
[CPO]
library("mlr")
library("mlrCPO")
# Dataset has originally four features
iris.task$task.desc$n.feat
iris.task.subset = iris.task %>>% cpoSelector(c(TRUE, TRUE, FALSE, FALSE))
# Now only two were selected
iris.task.subset$task.desc$n.feat
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.