powered by
The SFS method Whitney1971FSinR starts with an empty set of features and add a single feature at each step with a view to improving the evaluation of the set.
sfs(data, class, featureSetEval, stopCriterion = -1, stop = FALSE)
A data frame with the features and the class of the examples
The name of the dependent variable
The measure for evaluate features
Define a maximum number of iterations. Disabled if the value is -1 (default: -1 )
If true, the function stops if next iteration does not improve current results (default: FALSE)
A list is returned containing:
A vector with all features. Selected features are marked with 1, unselected features are marked with 0
Evaluation measure obtained with the feature selection
# NOT RUN { ## sfs method for iris dataset (filter method) sfs(iris, 'Species', roughsetConsistency) # }
Run the code above in your browser using DataLab