| relief | R Documentation |
Generates an evaluation function that calculates a measure of the set of features with relief (individual measure). The relief algorithm \insertCiteKira1992FSinR finds weights of continous and discrete attributes basing on a distance between instances. Adapted from Piotr Romanski's Fselector package \insertCiteFSelectorPkgFSinR. This function is called internally within the filterEvaluator function.
relief(neighbours.count = 5, sample.size = 10)
neighbours.count |
|
sample.size |
|
relief classification and regression continous and discrete data
Returns a function that is used to generate an individual evaluation measure using relief
Alfonso Jiménez-Vílchez
## 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 Cramer
relief_evaluator <- relief()
# Evaluate the features (parameters: dataset, target variable and features)
relief_evaluator(iris,'Species',c('Sepal.Length'))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.