directSearchAlgorithm: Direct search algorithm generator

Description Usage Arguments Value Author(s) References Examples

View source: R/directSearchGenerator.R

Description

Generates a direct search function. This function in combination with the evaluator composes the feature selection process. Specifically, the result of calling this function is another function that is passed on as a parameter to the directFeatureSelection function. However, you can run this function directly to perform a direct search process.

Usage

1
directSearchAlgorithm(directSearcher, params = list())

Arguments

directSearcher

Name of the direct search algorithm. The available direct search algorithms are:

selectKBest

See selectKBest

selectPercentile

See selectPercentile

selectThreshold

See selectThreshold

selectThresholdRange

See selectThresholdRange

selectDifference

See selectDifference

selectSlope

See selectSlope

params

List with the parameters of each direct search method. For more details see each method. Default: empty list.

Value

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

Author(s)

Francisco Aragón Royón

References

\insertAllCited

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
## Not run:  

## Examples of a direct search algorithm generation

direct_search_method_1 <- directSearchAlgorithm('selectKBest')
direct_search_method_2 <- directSearchAlgorithm('selectPercentile')
direct_search_method_3 <- directSearchAlgorithm('selectThreshold')


## Examples of a direct search algorithm generation (with parameters)

direct_search_method_1 <- directSearchAlgorithm('selectKBest', list(k=2))
direct_search_method_2 <- directSearchAlgorithm('selectPercentile', list(percentile=25))
direct_search_method_3 <- directSearchAlgorithm('selectThreshold', list(threshold=0.55))


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


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

# Generates the direct search function
direct_search_method <- directSearchAlgorithm('selectKBest')
# Performs the diret search process directly (parameters: dataset, target variable and evaluator)
direct_search_method(iris, 'Species', filter_evaluator)

## End(Not run)

FSinR documentation built on Nov. 23, 2020, 5:10 p.m.