
Last chance! 50% off unlimited learning
Sale ends in
Generates a search function based on the whale optimization algorithm. This function is called internally within the searchAlgorithm
function. Binary Whale Optimization Algorithm Kumar2018FSinR is an algorithm that simulates the social behavior of humpback whales. This algorithm employs a binary version of the bubble-net hunting strategy. The algorithm starts with an initial population of individuals, and in each iteration updates the individuals according to several possible actions: Encircling prey, Bubble-net attacking or Search for prey
whaleOptimization(population = 10, iter = 10, verbose = FALSE)
The number of whales population
The number of iterations of the algorithm
Print the partial results in each iteration
Returns a search function that is used to guide the feature selection process.
# NOT RUN {
## The direct application of this function is an advanced use that consists of using this
# function directly and performing a search process in a feature space
## Classification problem
# Generates the filter evaluation function
filter_evaluator <- filterEvaluator('determinationCoefficient')
# Generates the search function with WOA
woa_search <- whaleOptimization()
# Performs the search process directly (parameters: dataset, target variable and evaluator)
woa_search(iris, 'Species', filter_evaluator)
# }
Run the code above in your browser using DataLab