| chiSquared | R Documentation |
Generates an evaluation function that calculates the Chi squared value \insertCitePearson1900FSinR, evaluating the selected features individually (individual measure). This function is called internally within the filterEvaluator function.
chiSquared()
Returns a function that is used to generate an individual evaluation measure using chi squared.
## The direct application of this function is an advanced use that consists of using this
# function directly to individually evaluate a set of features
## Classification problem
# Generate the evaluation function with Chi squared
chiSquared_evaluator <- chiSquared()
# Evaluate the features (parameters: dataset, target variable and features)
chiSquared_evaluator(iris,'Species',c('Sepal.Length'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.