powered by
Selects features (in descending order from the best evaluation measure to the lowest) until the slope to the next feature is over a threshold. The slope is calculated as: (s.threshold) / (number of features)
selectSlope(data, class, featureEval, s.threshold = 0.8)
A data frame with the features and the class of the examples
The name of the dependent variable
The measure used to evaluate features
Number between 0 and 1
A list is returned containing:
A vector with all features. Selected features are marked with 1, unselected features are marked with 0
The names of the returned features sorted according to the result of the evaluation measure
The evaluation measures of the returned features
# NOT RUN { ## Select Slope for iris dataset (filter method) selectSlope(iris, 'Species', IEPConsistency, 0.8) # }
Run the code above in your browser using DataLab