-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage.txt
63 lines (51 loc) · 2.74 KB
/
usage.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
In this file, it is explained how to call AS-ZSL in Matlab to solve
min 0.5*||Ax-y||^2 + lambda*||x||_1
s.t. sum(x) = 0
with given matrix A, vector y and non-negative scalar lambda.
-------------------------------------------------------------------------
Usage.
-------------------------------------------------------------------------
X = as_zsl(A,Y,LAMBDA)
X = as_zsl(A,Y,LAMBDA,OPTS)
[X,F] = as_zsl(...)
[X,F,AS_ZSL_INFO] = as_zsl(...)
-------------------------------------------------------------------------
Input arguments.
-------------------------------------------------------------------------
- A (required) is the matrix of covariates (each row is a sample),
- Y (required) is the response vector,
- LAMBDA (required) is the regularization parameter (or a vector of
regularization parameters sorted in descending order,
see below),
- OPTS (optional) is a structure with algorithm options (see below).
-------------------------------------------------------------------------
Output arguments.
-------------------------------------------------------------------------
- X is the vector of regression coefficients;
- F is the objective function value at X;
- AS_ZSL_INFO is a structure with the following fields:
'it' is the number of iterations;
'flag' is an integer describing the exit condition:
0 if the optimality violation <= 'eps_opt'
(default value of 'eps_opt' = 1e-3),
1 if the number of iterations >= 'max_it'
(default value of 'max_it' = 100000),
2 if no sufficient decrease in the objective function has been obtained.
-------------------------------------------------------------------------
Options.
-------------------------------------------------------------------------
To change the values of the above parameters 'eps_opt'and 'max_it', use
the structure OPTS (it is one of the input arguments of 'as_zsl', see
above), having as field names the names of the parameters to be changed.
Anther parameter that can be changed in the same way is 'verbosity',
which can be set to true or false to have prints or not (the default value
of 'verbosity' is false).
-------------------------------------------------------------------------
Using more regularization parameters.
-------------------------------------------------------------------------
LAMBDA can even be a vector of regularization parameters sorted in
descending order. In this case, to solve a problem for each
regularization parameter, a warm start strategy is used and the output
values have columns, each one referring to the corresponding regularization
parameter.
-------------------------------------------------------------------------