# NOT RUN {
## Example of feature selection using rfe and sbf
library(caret)
library(specmine.datasets)
data(cachexia)
rfe.result = feature_selection(cachexia, "Muscle.loss",
method="rfe", functions = caret::rfFuncs,
validation = "cv", number = 3,
subsets = 2^(1:6))
sbf.result = feature_selection(cachexia, "Muscle.loss",
method="filter", functions = caret::rfSBF,
validation = "cv")
# }
Run the code above in your browser using DataLab