powered by
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.
relief(data, class, features, neighbours.count = 5, sample.size = 10)
A data frame with the features and the class of the examples
The name of the dependent variable
The feature or features to evalute individually
number of neighbours to find for every sampled instance
number of instances to sample
a data.frame containing the worth of attributes in the first column and their names as row names
relief classification and regression continous and discrete data
# NOT RUN { relief(iris, 'Species', c('Sepal.Width', 'Sepal.Length')) # }
Run the code above in your browser using DataLab