Giter Club home page Giter Club logo

mst's Introduction

mst

Model Selection Toolbox for Matlab/Octave

Introduction

List of features:

  • Linear estimators:
    • Lasso,
    • Adaptive Lasso,
    • Elastic net,
    • Adaptive elastic net,
    • MCP
    • Ridge regression estimator
    • Restricted least-squares estimator
    • (Generalized) James-Stein estimator
  • Model selection: SURE, AIC, Cp, BIC, AICc, AIC3, SRM, Cross validation, Slope Heuristics, loss estimators
  • Random generation of multivariate spherically symmetric distributions: Gaussian, Student, Kotz, Laplace, Bessel, Power exponential, etc.

Install

Documentation

This toolbox works for sparse linear models of the type y = X*beta + epsilon, where beta is the regression vector to be estimated and is assumed to be sparse (non-zero coefficients corresponding to explanatory variables). In this setting, we use the quadratic loss || beta_chap - beta ||^2 as a benchmark for comparing different models.

  • 'ex_ModSel.m' is an example of how the code should be called.
  • 'ModSel.m' is the main function for the comparison of several models and the selection of the best one.
  • 'ExplorEstim.m' uses one method (stepwise or regularization) to determine the order in which the variables should be explored, and then either keeps the corresponding estimator or changes for another one (among least-squares, ridge regression, James-Stein estimator, generalized James-Stein estimator) computed on the resulting subset.
  • 'Shrinkage.m' considers the special case where the design matrix X is orthogonal and thus uses a more efficient way to compute the regularization-type estimators.
  • 'monLAR.m' finds the Lasso regularization path and computes both the Lasso estimate for beta and the least-squares estimate on the the variables of X selected by Lasso.
  • 'monMCP.m' finds the MCP regularization path and computes both the MCP estimate for beta and the least-squares estimate on the the variables of X selected by MCP.
  • 'stepwise_path.m' computes the Forward Regression and Backward Elimination.
  • 'dof.m' computes the estimated degrees of freedom through directional derivative (when no analytical form is given).
  • 'EvalModel.m' computes a criteria for evaluating different models.
  • 'estimCouts.m' computes the unbiased and corrective loss estimates.
  • 'genDataLiterature.m' generates examples (i.e. X and beta) taken from several articles in the literature.
  • 'randSS.m' generates random variables from multivariate spherically symmetric distributions.
  • 'ex_randSS.m' is an example of how to use the random generator.
  • 'canonical.m' transforms the usual linear model in the canonical form.

mst's People

Contributors

aboisbunon avatar rflamary avatar

Watchers

 avatar  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.