Prepare penalty arguments
Details
The following arguments are supported:
nameThe penalty function. Currently, only
"adaptive_sparse_group_lasso"is supported.alphaThe mixing parameter. Must be between 0 and 1. 1 is pure Lasso (default); 0 is pure group Lasso.
aThe SCAD parameter, requires >=2. Default: 3.7.
lambdaThe penalty parameter. If
NULL(default), a logarithmic grid search is used.n_lambdaThe number of penalty parameters to use if
lambdaisNULL(default.)lambda_factorThe factor by which the penalty parameter is reduced overall (default:
1e-4.)adaptiveThe adaptive parameter. Must be non-negative (default:
0..)penalize_interceptWhether to penalize the intercept. Must be
TRUE(default) orFALSE....Additional arguments. Currently ignored.
For the grid search, we first obtain the minimum \(\lambda_\max\) for which the solution is zero. Then, a logarithmically-space sequence of \(\lambda\) values is generated starting from \(\lambda_\max\) and ending at \(\lambda_\max \times \texttt{lambda_factor}\).