directSearchAlgorithm {FSinR} | R Documentation |
Direct search algorithm generator
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
directSearchAlgorithm(directSearcher, params = list())
Arguments
directSearcher |
Name of the direct search algorithm. The available direct search algorithms are:
|
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
There are no references for Rd macro \insertAllCites
on this help page.
Examples
## 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)