Description Usage Value Author(s) References Examples
Generates an evaluation function that calculates the gini index \insertCiteCeriani2012FSinR of discrete features (set measure). This function is called internally within the filterEvaluator
function.
1 |
Returns a function that is used to generate an evaluation set measure using the Gini index value for the selected features.
Adan M. Rodriguez
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 to evaluate a set of features
## Classification problem
# A discrete dataset is used (in this case we use only several discrete columns)
adult <- adult[,c(4,9,10,15)]
# Generate the evaluation function with Gini index
giniIndex_evaluator <- giniIndex()
# Evaluate the features (parameters: dataset, target variable and features)
giniIndex_evaluator(adult,'income',c('race','sex','education'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.