mlr3filters (version 0.1.1)

FilterPerformance: Predictive Performance Filter

Description

Filter which uses the predictive performance of a mlr3::Learner as filter score. Performs a mlr3::resample() for each feature separately. The filter score is the aggregated performance of the mlr3::Measure, or the negated aggregated performance if the measure has to be minimized.

Arguments

Format

R6::R6Class inheriting from Filter.

Construction

FilterPerformance$new(learner = mlr3::lrn("classif.rpart"),
  resampling = mlr3::rsmp("holdout"), measure = mlr3::msr("classif.ce"))
mlr_filters$get("performance")
flt("performance")

See Also

Dictionary of Filters: mlr_filters

Other Filter: FilterAUC, FilterAnova, FilterCMIM, FilterCarScore, FilterCorrelation, FilterDISR, FilterImportance, FilterInformationGain, FilterJMIM, FilterJMI, FilterKruskalTest, FilterMIM, FilterMRMR, FilterNJMIM, FilterVariance, Filter, mlr_filters

Examples

Run this code
# NOT RUN {
task = mlr3::tsk("iris")
learner = mlr3::lrn("classif.rpart")
filter = flt("performance", learner = learner)
filter$calculate(task)
as.data.table(filter)
# }

Run the code above in your browser using DataLab