
Last chance! 50% off unlimited learning
Sale ends in
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.
searchAlgorithm(searcher, params = list())
Name of the search algorithm. The available search algorithms are:
Ant colony optimization (ACO). See antColony
Breadth first search. See breadthFirst
Deep first search. See deepFirst
Genetic algorithm (GA). See geneticAlgorithm
Hill-Climbing (HC). See hillClimbing
Las Vegas (LV). See LasVegas
Sequential backward selection (sbs). See sequentialBackwardSelection
Sequential floating forward selection (sffs). See sequentialFloatingForwardSelection
Sequential floating backward selection (sfbs). See sequentialFloatingBackwardSelection
Sequential forward selection (sfs). See sequentialForwardSelection
Simulated annealing (SA). See simulatedAnnealing
Tabu search (TS). See tabu
Whale optimization algorithm (WOA). See whaleOptimization
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
# 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)
# }
Run the code above in your browser using DataLab