feature_selection_corr: Feature selection by correlation

View source: R/trans_feature_selection_corr.R

feature_selection_corrR Documentation

Feature selection by correlation

Description

Remove highly correlated numeric features based on a correlation cutoff.

Usage

feature_selection_corr(cutoff = 0.9, features = NULL, keep = NULL)

Arguments

cutoff

correlation cutoff in [0, 1] above which one feature is removed

features

optional vector of feature names to consider (default: all numeric columns)

keep

optional vector of columns that should always be kept in transform()

Details

For each pair of numeric features whose absolute correlation exceeds cutoff, the one with the larger mean absolute correlation to the remaining features is removed, reducing redundancy among predictors.

Value

returns an object of class feature_selection_corr

References

Hall, M. A. (1999). Correlation-based Feature Selection for Machine Learning. PhD thesis, University of Waikato. Kuhn, M. (2008). Building Predictive Models in R Using the caret Package. Journal of Statistical Software, 28(5):1-26.

Examples

data(iris)
fs <- feature_selection_corr(cutoff = 0.9)
fs <- fit(fs, iris)
iris_fs <- transform(fs, iris)
fs$selected
names(iris_fs)

daltoolbox documentation built on Nov. 23, 2026, 9:08 a.m.