Preconditioner SGD optimization
precond_sgd(
stepsize = 0.5,
preconditioner = "fast",
numerical_eps = 1e-05,
precond_by_diff_chain = FALSE
)
stepsize for SGD
preconditioner, can be c("none", "fast", "full") "none" means no preconditioner, i.e., vanilla SGD, "full" means compute numerical hessian as preconditioner "fast" means compute numerical hessian except for the parameter of K matrix (for speed reason)
numerical, the gap used for estimate preconditioner, default is 1e-5
logical, compute preconditioner only at stop points and switch to use the preconditioner of the other chains. If FALSE, preconditioner will be computed at each iteration.
a list of control variables for optimization
(used in control_opt
function)