set.control.alg | R Documentation |
Check if the input control parameters are allowed and set them to default values if they are not. Returns a list of well-defined control parameters.
set.control.alg(
method = c("airwls", "newton", "sgd"),
sampling = c("block", "coord", "rnd-block"),
control = list()
)
method |
optimization method to use |
sampling |
sub-sampling method to use |
control |
list of algorithm-specific control parameters |
It is not necessary to provide a complete list of control parameters, one can
just specify a list containing the parameters he/she needs to change from the
default values. Wrongly specified parameters are ignored or set to default values.
For a detailed description of all the algorithm-specific control parameters,
please refer to
set.control.airwls
(method="airwls"
),
set.control.newton
(method="newton"
),
set.control.block.sgd
(method="sgd"
, sampling="block"
).
set.control.coord.sgd
(method="sgd"
, sampling="coord"
),
A list
of control parameters for the selected estimation algorithm
set.control.init
, set.control.cv
, sgdgmf.fit
library(sgdGMF)
# Empty call
set.control.alg()
# Parametrized call
set.control.alg(method = "airwls", control = list(maxiter = 200, stepsize = 0.3))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.