mlr3filters (version 0.1.1)

FilterCarScore: Conditional Mutual Information Based Feature Selection Filter

Description

Calculates the Correlation-Adjusted (marginal) coRelation scores (short CAR scores) implemented in care::carscore() in package care. The CAR scores for a set of features are defined as the correlations between the target and the decorrelated features. The filter returns the absolute value of the calculated scores.

Argument verbose defaults to FALSE.

Arguments

Format

R6::R6Class inheriting from Filter.

Construction

FilterCarScore$new()
mlr_filters$get("carscore")
flt("carscore")

See Also

Dictionary of Filters: mlr_filters

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

Examples

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

## changing filter settings
filter = flt("carscore")
filter$param_set$values = list("diagonal" = TRUE)
filter$calculate(task)
head(as.data.table(filter), 3)
# }

Run the code above in your browser using DataLab