selectDifference: Select difference

View source: R/selectIndividualFeatures.R

selectDifferenceR Documentation

Select difference

Description

Generates a direct search function that selects features (in descending order from the best evaluation measure to the lowest) until evaluation difference is over a threshold (The features evaluation is individual). This function is called internally within the directSearchAlgorithm function.

Usage

selectDifference(d.threshold = 0.2)

Arguments

d.threshold
  • Number between 0 and 1, to calculate the slope

Value

Returns a direct search function that is used in the feature selection process.

Author(s)

Adan M. Rodriguez

Francisco Aragón Royón

Examples

 

## The direct application of this function is an advanced use that consists of using this 
# function directly and performing a direct search process
## Classification problem


# Generates the filter evaluation function
filter_evaluator <- filterEvaluator('IEConsistency')

# Generates the direct search function with difference
sd_direct_search <- selectDifference()
# Performs the direct search process directly (parameters: dataset, target variable and evaluator)
sd_direct_search(iris, 'Species', filter_evaluator)


FSinR documentation built on Nov. 5, 2025, 5:24 p.m.