set.control.init: Check and set the initialization parameters for a GMF model

set.control.initR Documentation

Check and set the initialization parameters for a GMF model

Description

Check if the input initialization parameters are allowed and set them to default values if they are not. Returns a list of well-defined options which specify how to initialize a GMF model. See sgdgmf.init for more details upon the methods used for initialisation.

Usage

set.control.init(
  method = c("ols", "glm", "random", "values"),
  type = c("deviance", "pearson", "working", "link"),
  values = list(),
  niter = 5,
  normalize = TRUE,
  verbose = FALSE,
  parallel = FALSE,
  nthreads = 1
)

Arguments

method

initialization method (see sgdgmf.init for more details upon the initialization methods used)

type

residual type to be decomposed (see sgdgmf.init for more details upon the residuals used)

values

list of custom initialization parameters fixed by the user

niter

number if refinement iterations in the "svd" method

normalize

if TRUE, normalize U and V to orthogonal U and lower triangular V

verbose

if TRUE, print the initialization state

parallel

if TRUE, use parallel computing for the "glm" method

nthreads

number of cores to be used in the "glm" method

Value

A list of control parameters for the initialization

See Also

set.control.alg, set.control.cv, sgdgmf.init

Examples

library(sgdGMF)

# Empty call
set.control.init()

# Parametrized call
set.control.init(method = "glm", type = "deviance", niter = 10)


sgdGMF documentation built on April 3, 2025, 7:37 p.m.