Learn R Programming

FSinR (version 1.0.8)

selectSlope: Select slope

Description

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)

Usage

selectSlope(data, class, featureEval, s.threshold = 0.8)

Arguments

data
  • A data frame with the features and the class of the examples

class
  • The name of the dependent variable

featureEval
  • The measure used to evaluate features

s.threshold
  • Number between 0 and 1

Value

A list is returned containing:

bestFeatures

A vector with all features. Selected features are marked with 1, unselected features are marked with 0

featuresSelected

The names of the returned features sorted according to the result of the evaluation measure

valuePerFeature

The evaluation measures of the returned features

Examples

Run this code
# NOT RUN {
## Select Slope for iris dataset (filter method)
selectSlope(iris, 'Species', IEPConsistency, 0.8)
# }

Run the code above in your browser using DataLab