Expectation step of the EM algorithm to compute the parameters of the hyper-posterior Gaussian distribution of the mean process in Magma.
e_step(db, m_0, kern_0, kern_i, hp_0, hp_i, pen_diag)
A named list, containing the elements mean
, a tibble
containing the Input and associated Output of the hyper-posterior's mean
parameter, and cov
, the hyper-posterior's covariance matrix.
A tibble or data frame. Columns required: ID, Input, Output. Additional columns for covariates can be specified.
A vector, corresponding to the prior mean of the mean GP.
A kernel function, associated with the mean GP.
A kernel function, associated with the individual GPs.
A named vector, tibble or data frame of hyper-parameters
associated with kern_0
.
A tibble or data frame of hyper-parameters
associated with kern_i
.
A number. A jitter term, added on the diagonal to prevent numerical issues when inverting nearly singular matrices.