mlr3filters (version 0.1.1)

FilterAUC: AUC Filter

Description

Area under the (ROC) Curve filter, analogously to mlr3measures::auc() from mlr3measures. Missing values of the features are removed before calculating the AUC. If the AUC is undefined for the input, it is set to 0.5 (random classifier). The absolute value of the difference between the AUC and 0.5 is used as final filter value.

Arguments

Format

R6::R6Class inheriting from Filter.

Construction

FilterAUC$new()
mlr_filters$get("auc")
flt("auc")

See Also

Dictionary of Filters: mlr_filters

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

Examples

Run this code
# NOT RUN {
task = mlr3::tsk("pima")
filter = flt("auc")
filter$calculate(task)
head(as.data.table(filter), 3)
# }

Run the code above in your browser using DataLab