| binaryConsistency | R Documentation |
Generates an evaluation function that calculates the binary consistency, also known as "Sufficiency test" from FOCUS \insertCiteAlmuallimDietterich1991FSinR (set measure). This function is called internally within the filterEvaluator function.
binaryConsistency()
Returns a function that is used to generate an evaluation set measure using the binary consistency value for the selected features.
Adan M. Rodriguez
## The direct application of this function is an advanced use that consists of using this
# function directly to evaluate a set of features
## Classification problem
data("Titanic")
titanic <- as.data.frame(Titanic)
# A discrete dataset is used (in this case we use only several discrete columns)
titanic_subset <- titanic[, c("Class", "Sex", "Age", "Survived")]
# Generate the evaluation function with Binary Consistency
bc_evaluator <- binaryConsistency()
# Evaluate the features (parameters: dataset, target variable and features)
bc_evaluator(titanic_subset, "Survived", c("Class", "Sex", "Age"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.