Learn R Programming

FSinR (version 2.0.5)

relief: Relief

Description

Generates an evaluation function that calculates a measure of the set of features with relief (individual measure). The relief algorithm Kira1992FSinR finds weights of continous and discrete attributes basing on a distance between instances. Adapted from Piotr Romanski's Fselector package FSelectorPkgFSinR. This function is called internally within the filterEvaluator function.

Usage

relief(neighbours.count = 5, sample.size = 10)

Arguments

neighbours.count
  • number of neighbours to find for every sampled instance

sample.size
  • number of instances to sample

Value

Returns a function that is used to generate an individual evaluation measure using relief

Details

relief classification and regression continous and discrete data

References

Examples

Run this code
# NOT RUN {
## 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'))
# }

Run the code above in your browser using DataLab