powered by
The SBS method MarillGreen1963FSinR starts with all the features and removes a single feature at each step with a view to improving the evaluation of the set.
sbs(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 { ## sbs method for iris dataset (filter method) sbs(iris, 'Species', giniIndex) # }
Run the code above in your browser using DataLab