Displays the difference in the variational lower bound (ELBO) from one iteration to the next.
flash_verbose_elbo_diff(curr, prev, k)
The flash_fit
object from the current iteration.
The flash_fit
object from the previous iteration.
Only used during sequential backfits (that is, calls to
flash_backfit
where extrapolate = FALSE
). It then
takes the index of the factor/loadings pair currently being optimized.
A character string, suitable for printing progress updates.
This function is an example of a function that may be passed to
parameter fns
in function flash_set_verbose
to
customize the output that is printed after each greedy or backfitting
iteration. See flash_set_verbose
for details and examples.