Git Product home page Git Product logo

omp.jl's Introduction

OMP.jl

A Julia module to perform orthogonal matching pursuit.

Installation

From the Julia REPL, type

Pkg.clone("https://github.com/klkeys/OMP.jl")

Usage

OMP.jl exports two functions, omp and cv_omp. To construct a k-sparse approximation to a response y from a design matrix x, the call is

output = omp(x, y, k)

The result output is a SparseMatrixCSC with one column for each sparsity level 1, 2, ..., k.

To compute the sparsity level of the best predictive model, the call is

output = cv_omp(x, y)

By default cv_omp tests sparsity levels 1, 2, ..., 20 in a q = 5-fold crossvalidation scheme. Use the keyword argument k = MODEL_SIZE to change the maximum sparsity level to MODEL_SIZE. The keyword argument q = NUM_FOLDS sets the number of folds to NUM_FOLDS. Also by default, cv_omp spawns crossvalidation folds on all available processors. The processes involved in the crossvalidation are controled by the keyword argument pids. For example, pids = [1,2,3] will only spawn folds on process IDs 1, 2, and 3.

References

Signal Recovery From Random Measurements Via Orthogonal Matching Pursuit, Joel A. Tropp and Anna C. Gilbert, IEEE Transactions on Information Theory 53:12, December 2007.

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.