Description Usage Arguments Value Author(s) References Examples
View source: R/probabilistic.R
Generates a search function based on Las Vegas algorithm. This function is called internally within the searchAlgorithm
function. The LasVegas method \insertCiteLiuSetiono1996FSinR starts with a certain set of features and in each step a new set is randomly generated, if the new set is better it is saved as the best solution. The algorithm ends when there are no improvements in a certain number of iterations.
1 |
start |
Binary vector with the set of initial features (1: selected and 0: unselected) for the algorithm |
K |
The maximum number of iterations without improvement to finalize the algorithm |
verbose |
Print the partial results in each iteration |
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 | ## 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 Las Vegas
LV_search <- LasVegas()
# Performs the search process directly (parameters: dataset, target variable and evaluator)
LV_search(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.