Description Usage Arguments Value Author(s) References Examples
View source: R/sequentialSelection.R
Generates a search function based on sequential backward selection. This function is called internally within the searchAlgorithm
function. The SBS method \insertCiteMarillGreen1963FSinR starts with all the features and removes a single feature at each step with a view to improving the evaluation of the set.
1 | sequentialBackwardSelection(stopCriterion = -1, stop = FALSE)
|
stopCriterion |
Define a maximum number of iterations. Disabled if the value is -1 (default: -1 ) |
stop |
If true, the function stops if next iteration does not improve current results (default: FALSE) |
Returns a search function that is used to guide the feature selection process.
Adan M. Rodriguez
Alfonso Jiménez-Vílchez
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 with sbs
filter_evaluator <- filterEvaluator('determinationCoefficient')
# Generates the search function
sbs_search <- sequentialBackwardSelection()
# Performs the search process directly (parameters: dataset, target variable and evaluator)
sbs_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.