spgl1.spg_lasso
- spgl1.spg_lasso(A, b, tau, **kwargs)[source]
LASSO problem.
spg_lassois designed to solve the Lasso problem:(LASSO) minimize ||Ax - b||_2 subject to ||x||_1 <= tau
where
Ais an M-by-N matrix,bis an M-vector.Acan be an explicit M-by-N matrix or ascipy.sparse.linalg.LinearOperator.This is equivalent to calling ``spgl1(A, b, tau=tau, sigma=0)
- Parameters
- A{sparse matrix, ndarray, LinearOperator}
Representation of an m-by-n matrix. It is required that the linear operator can produce
AxandA^T x.- barray_like, shape (m,)
Right-hand side vector
b.- kwargsdict, optional
Additional input parameters (refer to
spgl1.spgl1for a list of possible parameters)
- Returns
- xarray_like, shape (n,)
Inverted model
- rarray_like, shape (m,)
Final residual
- garray_like, shape (h,)
Final gradient
- infodict
See spgl1.