Variance filter calling stats::var().

Argument na.rm defaults to TRUE here.

Format

R6::R6Class inheriting from Filter.

Construction

FilterVariance$new()
mlr_filters$get("variance")
flt("variance")

See also

Examples

task = mlr3::tsk("mtcars") filter = flt("variance") filter$calculate(task) head(filter$scores, 3)
#> disp hp qsec #> 15360.799829 4700.866935 3.193166
#> feature score #> 1: disp 1.536080e+04 #> 2: hp 4.700867e+03 #> 3: qsec 3.193166e+00 #> 4: cyl 3.189516e+00 #> 5: carb 2.608871e+00 #> 6: wt 9.573790e-01 #> 7: gear 5.443548e-01 #> 8: drat 2.858814e-01 #> 9: vs 2.540323e-01 #> 10: am 2.489919e-01