Maximization step of the Variational EM algorithm used to compute hyper-parameters of all the kernels involved in MagmaClust.
vm_step(
db,
old_hp_k,
old_hp_i,
list_mu_param,
kern_k,
kern_i,
m_k,
common_hp_k,
common_hp_i,
pen_diag
)
A named list, containing the elements hp_k
, a tibble
containing the hyper-parameters associated with each cluster,
hp_i
, a tibble containing the hyper-parameters
associated with the individual GPs, and prop_mixture_k
,
a tibble containing the hyper-parameters associated with each individual,
indicating the probabilities to belong to each cluster.
A tibble or data frame. Columns required: ID, Input, Output. Additional columns for covariates can be specified.
A named vector, tibble or data frame, containing the hyper-parameters from the previous M-step (or initialisation) associated with the mean GPs.
A named vector, tibble or data frame, containing the hyper-parameters from the previous M-step (or initialisation) associated with the individual GPs.
List of parameters of the K mean GPs.
A kernel used to compute the covariance matrix of the mean GP at corresponding timestamps.
A kernel used to compute the covariance matrix of individuals GP at corresponding timestamps.
A named list of prior mean parameters for the K mean GPs. Length = 1 or nrow(unique(db$Input))
A boolean indicating whether hp are common among mean GPs (for each mu_k)
A boolean indicating whether hp are common among individual GPs (for each y_i)
A number. A jitter term, added on the diagonal to prevent numerical issues when inverting nearly singular matrices.