Learn R Programming

FSinR (version 1.0.8)

relief: Relief

Description

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.

Usage

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

Arguments

data
  • A data frame with the features and the class of the examples

class
  • The name of the dependent variable

features
  • The feature or features to evalute individually

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

sample.size
  • number of instances to sample

Value

  • a data.frame containing the worth of attributes in the first column and their names as row names

Details

relief classification and regression continous and discrete data

References

Examples

Run this code
# NOT RUN {
relief(iris, 'Species', c('Sepal.Width', 'Sepal.Length'))
# }

Run the code above in your browser using DataLab