Description Usage Arguments Value Examples
Computes the proximal operator of the scaled elastic net penalty:
h(x) = λ [ (1 - α)/2 ||x||_2^2 + α ||x||_1 ] ,
where λ is a scaling factor and α \in [0,1] balances between the L1 and L2 norms.
1 | prox.elasticnet(x, t = 1, opts = list(lambda = 1, alpha = 1))
|
x |
The input vector |
t |
The step size (default is |
opts |
List of parameters, which can include:
|
The proximal of h at x with step size t, given by
prox_h(x,t) = argmin_u [ t h(u) + 1/2 || x - u ||^2 ]
.
1 | prox.elasticnet(c(1,3,-2), 1.5, list(lambda=1,alpha=0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.