ACEfit.ASP
— TypeASP
: Active Set Pursuit solver
Solves the lasso optimization problem.
\[\max_{y} \left( b^T y - \frac{1}{2} λ y^T y \right)\]
subject to
\[ \|A^T y\|_{\infty} \leq 1.\]
Constructor Keyword arguments
ACEfit.ASP(; P = I, select = (:byerror, 1.0), tsvd = false, nstore=100,
- params...)
select
: Selection criterion for the final solution (required):final
: final solution (largest computed basis)(:byerror, q)
: solution with error withinq
times the minimum error along the path; if training error is used andq == 1.0
, then this is equivalent to to:final
.(:bysize, n)
: best solution with at mostn
non-zero features; if training error is used, then it will be the solution with exactlyn
non-zero features.
P = I
: prior / regularizer (optional)
The remaining kwarguments to ASP
are parameters for the ASP homotopy solver.
actMax
: Maximum number of active constraints.min_lambda
: Minimum value forλ
. (defaults to 0)loglevel
: Logging level.itnMax
: Maximum number of iterations.
Extended syntax for solve
solve(solver::ASP, A, y, Aval=A, yval=y)
A
:m
-by-n
design matrix. (required)b
:m
-vector. (required)Aval = nothing
:p
-by-n
validation matrixbval = nothing
:p
- validation vector
If independent Aval
and yval
are provided (instead of detaults A, y
), then the solver will use this separate validation set instead of the training set to select the best solution along the model path.