Description Usage Arguments Value Author(s) References Examples
View source: R/searchGenerator.R
Generates a search function. This function in combination with the evaluator guides the feature selection process. Specifically, the result of calling this function is another function that is passed on as a parameter to the featureSelection
function. However, you can run this function directly to perform a search process in the features space.
1 | searchAlgorithm(searcher, params = list())
|
searcher |
Name of the search algorithm. The available search algorithms are:
|
params |
List with the parameters of each search method. For more details see each method. Default: empty list. |
Returns a search function that is used to guide the feature selection process
Francisco Aragón Royón
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 | ## Not run:
## Examples of a search algorithm generation
search_method_1 <- searchAlgorithm('antColony')
search_method_2 <- searchAlgorithm('sequentialBackwardSelection')
search_method_3 <- searchAlgorithm('tabu')
## Examples of a search algorithm generation (with parameters)
search_method_1 <- searchAlgorithm('antColony', list(population=25, iter=50, verbose=TRUE))
search_method_2 <- searchAlgorithm('sequentialBackwardSelection', list(stop=TRUE))
search_method_3 <- searchAlgorithm('tabu', list(intensification=1, iterIntensification=25))
## The direct application of this function is an advanced use that consists of using this
# function directly to perform a search process on a feature space
## Classification problem
# Generates the filter evaluation function
filter_evaluator <- filterEvaluator('determinationCoefficient')
# Generates the search function
search_method <- searchAlgorithm('hillClimbing')
# Performs the search process directly (parameters: dataset, target variable and evaluator)
search_method(iris, 'Species', filter_evaluator)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.