FSelectorExhaustiveSearch class that implements an Exhaustive Search.

In order to support general termination criteria and parallelization, feature sets are evaluated in batches. The size of the feature sets is increased by 1 in each batch.

Dictionary

This FSelector can be instantiated via the dictionary mlr_fselectors or with the associated sugar function fs():

mlr_fselectors$get("exhaustive_search")
fs("exhaustive_search")

Parameters

max_features

integer(1)
Maximum number of features. By default, number of features in mlr3::Task.

Super class

mlr3fselect::FSelector -> FSelectorExhaustiveSearch

Methods

Public methods

Inherited methods

Method new()

Creates a new instance of this R6 class.

Usage

FSelectorExhaustiveSearch$new()


Method clone()

The objects of this class are cloneable with this method.

Usage

FSelectorExhaustiveSearch$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

library(mlr3) terminator = trm("evals", n_evals = 5) instance = FSelectInstanceSingleCrit$new( task = tsk("iris"), learner = lrn("classif.rpart"), resampling = rsmp("holdout"), measure = msr("classif.ce"), terminator = terminator ) fselector = fs("exhaustive_search") # \donttest{ # Modifies the instance by reference fselector$optimize(instance)
#> Petal.Length Petal.Width Sepal.Length Sepal.Width features x_domain #> 1: TRUE FALSE FALSE FALSE Petal.Length <list[4]> #> classif.ce #> 1: 0.06
# Returns best scoring evaluation instance$result
#> Petal.Length Petal.Width Sepal.Length Sepal.Width features x_domain #> 1: TRUE FALSE FALSE FALSE Petal.Length <list[4]> #> classif.ce #> 1: 0.06
# Allows access of data.table of full path of all evaluations instance$archive$data()# }
#> Petal.Length Petal.Width Sepal.Length Sepal.Width classif.ce #> 1: TRUE FALSE FALSE FALSE 0.06 #> 2: FALSE TRUE FALSE FALSE 0.06 #> 3: FALSE FALSE TRUE FALSE 0.26 #> 4: FALSE FALSE FALSE TRUE 0.48 #> 5: TRUE TRUE FALSE FALSE 0.06 #> 6: TRUE FALSE TRUE FALSE 0.06 #> 7: TRUE FALSE FALSE TRUE 0.06 #> 8: FALSE TRUE TRUE FALSE 0.06 #> 9: FALSE TRUE FALSE TRUE 0.06 #> 10: FALSE FALSE TRUE TRUE 0.26 #> uhash x_domain timestamp batch_nr #> 1: fc55522d-3f55-453d-bd01-930aa80fef14 <list[4]> 2020-10-31 04:26:18 1 #> 2: fa1eeeac-836c-4fdc-986f-75559bf5deb2 <list[4]> 2020-10-31 04:26:18 1 #> 3: 41b0280d-0588-4e00-b9f0-110511954bc3 <list[4]> 2020-10-31 04:26:18 1 #> 4: a069c5d1-84c4-43dd-9ee4-f425aa72e5c7 <list[4]> 2020-10-31 04:26:18 1 #> 5: 99a4162e-5cf9-40bd-9c1c-47356756d480 <list[4]> 2020-10-31 04:26:19 2 #> 6: dd178a48-dc8c-48e2-a6c8-2b630d9d5121 <list[4]> 2020-10-31 04:26:19 2 #> 7: 5aa163b8-a3db-42b3-b6ee-5a4a21a90519 <list[4]> 2020-10-31 04:26:19 2 #> 8: 28103a4f-ab7b-4890-9c47-078249710dba <list[4]> 2020-10-31 04:26:19 2 #> 9: e8cfad3a-39d6-4b27-acfe-0749ea2cff53 <list[4]> 2020-10-31 04:26:19 2 #> 10: 9499a2a0-e0c5-4025-a205-1599f2e6ff89 <list[4]> 2020-10-31 04:26:19 2