Proximal algorithms and operators in python
Python Makefile Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
docs
proxalgs
tests
.gitignore
.travis.yml
LICENSE.md
Makefile
README.md
requirements-dev.txt
requirements.txt
runtests.sh
setup.py

README.md

Proximal Algorithms

Proximal algorithms and operators in python

Build Status Coverage Status PyPI

by Niru Maheswaranathan ⚽️

Installation

pip install proxalgs

Overview

Proxalgs is a package for performing convex optimization in python.

Example code for solving l1-regularized least-squares:

>>> from proxalgs import Optimizer
>>> # we want to solve: min ||Ax - b||_2^2 + \gamma ||x||_1
>>> opt = Optimizer('linsys', P=(A.T @ A), q=(A.T @ b))       # main objective (least squares linear system)
>>> opt.add_regularizer('sparse', gamma=0.1)                  # regularizer (l1-norm) with penalty of 0.1
>>> x_hat = opt.minimize(x_init)                              # x_init can be any initialization (e.g. random)