Last chance! 50% off unlimited learning
Sale ends in
FeatSelControl
].All algorithms operate on a 0-1-bit encoding of candidate solutions. Per default a single bit corresponds
to a single feature, but you are able to change this by using the arguments bit.names
and bits.to.features
. Thus allowing you to switch on whole groups of features with a single bit.
selectFeatures(learner, task, resampling, measures, bit.names, bits.to.features,
control, show.info = getMlrOption("show.info"))
FeatSelResult
].FeatSelControl
,
analyzeFeatSelResult
,
getFeatSelResult
,
makeFeatSelWrapper
rdesc = makeResampleDesc("Holdout")
ctrl = makeFeatSelControlSequential(method = "sfs", maxit = NA)
res = selectFeatures("classif.rpart", iris.task, rdesc, control = ctrl)
analyzeFeatSelResult(res)
Run the code above in your browser using DataLab