Learn R Programming

FSinR (version 1.0.8)

selectThresholdRange: Select threshold range

Description

Selects the features whose evaluation is over a threshold, where this threshold is given as: (((min - max) * p.threshold) + max)

Usage

selectThresholdRange(data, class, featureEval, p.threshold = 0.3)

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

p.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 Threshold range for iris dataset (filter method)
selectThresholdRange(iris, 'Species', determinationCoefficient, 0.3)
# }

Run the code above in your browser using DataLab