powered by
Remove highly correlated numeric features based on a correlation cutoff.
feature_selection_corr(cutoff = 0.9)
returns an object of class feature_selection_corr
feature_selection_corr
correlation cutoff in [0, 1] above which one feature is removed
Uses caret::findCorrelation on the correlation matrix computed from numeric columns.
caret::findCorrelation
data(iris) fs <- feature_selection_corr(cutoff = 0.9) fs <- fit(fs, iris) iris_fs <- transform(fs, iris) names(iris_fs)
Run the code above in your browser using DataLab