Skip to contents

Information gain filter calling FSelectorRcpp::relief() in package FSelectorRcpp.

Super class

mlr3filters::Filter -> FilterRelief

Methods

Inherited methods


Method new()

Create a FilterRelief object.

Usage


Method clone()

The objects of this class are cloneable with this method.

Usage

FilterRelief$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

## Relief (default)
task = mlr3::tsk("pima")
filter = flt("relief")
filter$calculate(task)
head(filter$scores, 3)
#>   pedigree   pregnant       mass 
#> 0.03544833 0.03058824 0.01259714 
as.data.table(filter)
#>     feature        score
#> 1: pedigree  0.035448335
#> 2: pregnant  0.030588235
#> 3:     mass  0.012597137
#> 4:  insulin  0.012379808
#> 5:  triceps  0.010434783
#> 6: pressure  0.004081633
#> 7:  glucose -0.007870968
#> 8:      age -0.008333333