Git Product home page Git Product logo

fs-gram-schmidt's Introduction

fs-gram-schmidt

Feature Ranking and Selection Using Gram Schmidt Orthogonalisation

fs-gram-schmidt is an open-source feature selection algorithm in Python. It is built upon scientific computing packages Numpy and Scipy. It is based on the paper Ranking a Random Feature for Variable and Feature Selection (Stoppiglia et al. 2003) published in Journal of Machine Learning Research

Installing fs-gram-schmidt

Prerequisites:

Python 2.7 or Python 3

Pandas

NumPy

SciPy

Steps:

After you download/clone fs-gram-schmidt,

For Linux users, you can install the repository by the following command:

python setup.py install

For Windows users, you can also install the repository by the following command:

setup.py install

Examples

from fs-gram-schmidt.function import GSO

# feature_df : n*m pandas dataframe (preprocessed : should be scaled and works best when outliers are removed)
# target : n*1 pandas series of target values corresponding to feature_df
# risk : Predefined threshold of risk (0 < risk < 1)

gso_output = GSO.rank_features(train_X, target, risk=0.05)

# gso_output['ranked_features'] : List of ranked features ordered by their relevancy(descending) and selection risk (ascending)
# gso_output['feature_selection_risk'] : Mapping of nth feature in ranked_features with it's selection risk 

Contact

Ameya Dahale

E-mail: [email protected]

fs-gram-schmidt's People

Contributors

ameya-s avatar

Stargazers

 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.