Learn R Programming

FSinR (version 2.0.5)

breadthFirst: Breadth First Search (exhaustive search)

Description

Generates a search function based on the breadth first search. This function is called internally within the searchAlgorithm function. Breadth First Search searches the whole features subset in breadth first order Kozen1992FSinR.

Usage

breadthFirst()

Arguments

Value

Returns a search function that is used to guide the feature selection process.

References

Examples

Run this code
# 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 Breadth first
bfs_search <- breadthFirst()
# Performs the search process directly (parameters: dataset, target variable and evaluator)
bfs_search(iris, 'Species', filter_evaluator)
# }

Run the code above in your browser using DataLab