Learn R Programming

FSinR (version 1.0.8)

breadthFirstSearch: Exhaustive Search. Breadth First Search

Description

The method searches the whole features subset in breadth first order Kozen1992FSinR

Usage

breadthFirstSearch(data, class, featureSetEval)

Arguments

data
  • A data frame with the features and the class of the examples

class
  • The name of the dependent variable

featureSetEval
  • The measure for evaluate features

Value

A list is returned containing:

bestFeatures

A vector with all features. Selected features are marked with 1, unselected features are marked with 0

bestFitness

Evaluation measure obtained with the feature selection

References

Examples

Run this code
# NOT RUN {
## Breadth First Search for iris dataset (filter method)
breadthFirstSearch(iris, 'Species', binaryConsistency)
# }

Run the code above in your browser using DataLab