Bayesian Compressive Sensing (sparse coding) and Relevance Vector Machine

Version (6.21 KB) by Mo Chen
Bayesian methods (RVM) for learning sparse representation


Updated Sun, 13 Mar 2016 12:00:51 +0000

View License

Compressive sensing or sparse coding is to learn sparse representation of data. The simplest method is to use linear regression with L1 regularization. While this package provides Bayesian treatment for sparse coding problems.
The sparse coding problem is modeled as linear regression with a sparse prior (automatic relevance determination, ARD), which is also known as Relevance Vector Machine (RVM). The advantage is that it can do model selection automatically. As a result, this is no need to mannully specify the regularization parameter (learned from data) and better sparse recovery can be obtained. Please run the demo script in the package to give it a try.

This package is now a part of the PRML toolbox (

Cite As

Mo Chen (2023). Bayesian Compressive Sensing (sparse coding) and Relevance Vector Machine (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2016a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

update description
updated figure