ADMM.Rd
ADMM
ADMM( x, y, family = c("gaussian", "binomial", "multinomial", "poisson"), intercept = TRUE, center = !inherits(x, "sparseMatrix"), scale = c("l2", "l1", "sd", "none"), alpha = c("path", "estimate"), lambda = c("bh", "gaussian", "oscar"), alpha_min_ratio = if (NROW(x) < NCOL(x)) 0.01 else 1e-04, path_length = if (alpha[1] == "estimate") 1 else 20, q = 0.1 * min(1, NROW(x)/NCOL(x)), screen = TRUE, screen_alg = c("strong", "previous"), tol_dev_change = 1e-05, tol_dev_ratio = 0.995, max_variables = NROW(x), opt_algo = c("lbfgs", "bfgs", "nr"), max_passes = 1e+06, tol_abs = 1e-05, tol_rel = 1e-04, diagnostics = FALSE, verbosity = 0 )
x | the design matrix, which can be either a dense matrix of the standard matrix class, or a sparse matrix inheriting from Matrix::sparseMatrix. Data frames will be converted to matrices internally. |
---|---|
y | the response, which for |
family | model family |
intercept | whether to fit an intercept |
center | whether to center predictors or not by their mean. Defaults
to |
scale | type of scaling to apply to predictors.
|
alpha | scale for regularization path: either a decreasing numeric vector (possibly of length 1) or a character vector; in the latter case, the choices are:
|
lambda | either a character vector indicating the method used to construct the lambda path or a numeric non-decreasing vector with length equal to the number of coefficients in the model; see section Regularization sequences for details. |
alpha_min_ratio | smallest value for |
path_length | length of regularization path; note that the path
returned may still be shorter due to the early termination criteria
given by |
q | parameter controlling the shape of the lambda sequence, with
usage varying depending on the type of path used and has no effect
is a custom |
screen | (currently inactive) whether to use predictor screening rules (rules that allow some predictors to be discarded prior to fitting), which improve speed greatly when the number of predictors is larger than the number of observations. |
screen_alg | (currently inactive) what type of screening algorithm to use.
|
tol_dev_change | the regularization path is stopped if the fractional change in deviance falls below this value; note that this is automatically set to 0 if a alpha is manually entered |
tol_dev_ratio | the regularization path is stopped if the deviance ratio \(1 - \mathrm{deviance}/\mathrm{(null-deviance)}\) is above this threshold |
max_variables | criterion for stopping the path in terms of the maximum number of unique, nonzero coefficients in absolute value in model. For the multinomial family, this value will be multiplied internally with the number of levels of the response minus one. |
opt_algo | Algorithm to use for optimizing second order approximation for beta update step. |
max_passes | maximum number of passes (outer iterations) for solver |
tol_abs | absolute tolerance criterion for ADMM solver |
tol_rel | relative tolerance criterion for ADMM solver |
diagnostics | whether to save diagnostics from the solver |
verbosity | level of verbosity for displaying output from the program. Not completely developed. Use 3 just for now. |