Giter Club home page Giter Club logo

stabilityselection's Introduction

stabilitySelection

Perform stability selection using the MATLAB function lassoglm. The function stabilityPaths estimates the probability of a variable to be chosen in a sparse model by repeatedly subsampling the data, calculating the reguralisation path for each subsample, and counting how frequently the variable was chosen at each point in the path.

The resulting stability paths can be used to select or rank variables based on, for example, the maximum selection probability they achieved.

For more on the method, see Meinshausen & Bühlmann, 2010, and Shah & Samworth, 2013.

Meinshausen, Nicolai, and Peter Bühlmann. "Stability selection." Journal of the Royal Statistical Society Series B: Statistical Methodology 72.4 (2010): 417-473.

Shah, Rajen D., and Richard J. Samworth. "Variable selection with error control: another look at stability selection." Journal of the Royal Statistical Society Series B: Statistical Methodology 75.1 (2013): 55-80.

Example

a = [1:-0.1:0.1 zeros(1,40)];
Y = randn(100,1);
X = normrnd(Y*a,0.2);
Y = Y>0;
[selProb maxProb numSel Lambda] = stabilityPaths(X,Y);
plotStabilityPaths(selProb,1:10);

stabilityselection's People

Contributors

htpusa avatar

Watchers

 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.