Learn R Programming

FSinR (version 2.0.8)

IEPConsistency: Inconsistent Examples Pairs consistency measure

Description

Generates an evaluation function that calculates the inconsistent examples pairs consistency value, using hash tables Arauzo2007FSinR (set measure). This function is called internally within the filterEvaluator function.

Usage

IEPConsistency()

Arguments

Value

Returns a function that is used to generate an evaluation set measure using the inconsistent examples pairs consistency value for the selected features.

Author

Adan M. Rodriguez

References

Examples

Run this code
# \donttest{ 

## 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
IEPC_evaluator <- IEPConsistency()
# Evaluate the features (parameters: dataset, target variable and features)
IEPC_evaluator(titanic_subset, "Survived", c("Class", "Sex", "Age"))
# }

Run the code above in your browser using DataLab