Git Product home page Git Product logo

rrelieff's Introduction

RReliefF

Python Implementation of RReliefF - a feature selection tool for regression problems

Created by Amrit Sethi

RReliefF is a a feature selection tool for regression problems that helps in determining the predictive performance of the different features in a data set.

In addition to RReliefF, implementations of Relief and ReliefF - feature selection algorithms for classification problems, are also available in relieff.py

Although the function is python based, the function interface is designed to mimic the Matlab implementation.

Implementation of Relief based algorithms

This code follows the algorithm for the Relief based algorithms as described in "An adaptation of Relief for attribute estimation in regression" by M. Robnik-Sikonja and I. Kononenko

Equation References used in the comments of the main file are based on the aforementioned article

To work with RReliefF specifically, use W = RReliefF(X, y, opt)

opt can be replaced with the following optional arguments:

  • updates - This can be 'all' (default) or a positive integer depending
  • k - The number of neighbours to look at. Default is 10.
  • sigma - Distance scaling factor. Default is 50.
  • weight_track - Returns a matrix which tracks the weight changes at each iteration. False by default

Examples

Examples involving implementations for the 3 primary Relief based algorithms are included in examples.py. The variable regressionProblem can be set to True for trying out RReliefF and False for Relief and ReliefF. The examples included deliberately include a feature with random values to demonstrate how the Relief based algorithms can weed out irrelevant features in both, regression and classification problems.

RReliefF was also used in the following publication I co-authored (and serves as a good example of the algorithm's efficacy):

A Comparative Study of Wavelet-based Descriptors for Fault Diagnosis of Self-Humidified Proton Exchange Membrane Fuel Cells

rrelieff's People

Contributors

amritse avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.