control_VB: Control parameters for the VB algorithm

View source: R/LSBP.R

control_VBR Documentation

Control parameters for the VB algorithm

Description

The control_VB function can be used for specifying the technical settings (i.e. the maximum number of iterations, the tolerance level, and the initialization method), of the LSBP_VB main function.

Usage

control_VB(maxiter = 10000, tol = 0.01, method_init = "cluster")

Arguments

maxiter

An integer indicating the maximum number of iterations for the VB algorithm.

tol

A real number controlling the convergence of the algorithm. The LSBP_VB algorithm stops when the difference between consecutive values of the evidence lower bound (ELBO) is smaller than tol.

method_init

The initialization method. The default method_init='cluster' partitions the covariates using the clara clustering algorithm. Another available option is method_init='random'.

Value

The inputs are converted into a list. Missing arguments are filled with default values.


tommasorigon/LSBP documentation built on Feb. 25, 2023, 2:47 a.m.