RSAVS_UpdateZ | R Documentation |
Update z_vec
in the ADMM algorithm
RSAVS_UpdateZ_L1(invec, param, r1, const_a)
RSAVS_UpdateZ_L2(invec, param, r1, const_a)
RSAVS_UpdateZ_Huber(invec, param, r1, const_a)
invec |
numerical vector, the orignal |
param |
numerical vector, parameters needed for the loss function. For "L1" and "L2" loss, this will be ignored |
r1 |
numerical scalar, parameter needed in the quadratic term in the augmented
part for |
const_a |
numerical scalar, parameter controls the weight of regression part in the orignal objective function |
These functions correspond to different types of loss function defined in the original problem.
RSAVS_UpdateZ_L1
corresponds to the "L1" loss, which means l_type = "L1"
.
RSAVS_UpdateZ_L2
corresponds to the "L2" loss, which means l_type = "L2"
.
RSAVS_UpdateZ_Huber
corresponds to the "Huber" loss, which means l_type = "Huber"
.
When the loss type is "L2", it is possible to modify the algorithm to proceed
without z_vec
. But currently for a more unified paradigm, this is not
implemented.
Please refer to the vignette about the algorithm detail design to find out more about how these parameters are defined.
RSAVS_Path_PureR
, RSAVS_Solver_PureR
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.