Skip to main content
Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF! Donate Now

Least absolute deviations with L1 regularization using majorization-minimization

Project description

ci-badge cov-badge zenodo-badge

Least absolute deviations with L1 regularization using majorization-minimization. In estimation theory terms, this is the Maximum A Posterior (MAP) estimator for a Laplacian likelihood with Laplacian prior, i.e.

lad.png

The MM algorithm update turns out to be

lad2.png

which belongs to the class of iterative reweighted least-squares: https://en.wikipedia.org/wiki/Iteratively_reweighted_least_squares

Python Version

To install the development version, proceed as follows:

git clone https://github.com/mirca/lad.git
pip install -e lad

Or install the lastest version on PyPi:

pip install lad

Installation dependencies:

- tensorflow

Test dependencies:

- numpy
- tensorflow
- pytest
- pytest-cov

R version

Inside the R console, type:

devtools::install_github("mirca/lad/r/lad")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lad-0.1.dev4.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page