R: Create an ensemble feature filter.

makeFilterEnsemble {mlr} | R Documentation

## Create an ensemble feature filter.

### Description

Creates and registers custom ensemble feature filters. Implemented ensemble filters can be listed with listFilterEnsembleMethods. Additional documentation for the `fun` parameter specific to each filter can be found in the description.

### Usage

    makeFilterEnsemble(name, base.methods, desc, fun)

### Arguments

`name` | (`character(1)`) Identifier for the filter.
`base.methods` | the base filter methods which the ensemble method will use.
`desc` | (`character(1)`) Short description of the filter.
`fun` | (`function(task, nselect, ...`) Function which takes a task and returns a named numeric vector of scores, one score for each feature of `task`. Higher scores mean higher importance of the feature. At least `nselect` features must be calculated, the remaining may be set to `NA` or omitted, and thus will not be selected. the original order will be restored if necessary.

### Value

Object of class “FilterEnsemble”.

### See Also

Other filter: `filterFeatures()`, `generateFilterValuesData()`, `getFilteredFeatures()`, `listFilterEnsembleMethods()`, `listFilterMethods()`, `makeFilterWrapper()`, `makeFilter()`, `plotFilterValues()`

[Package mlr version 2.17.1 Index]