View source: R/helpers_convergence.R
| checkConvergence | R Documentation |
Returns TRUE when the absolute ELBO change between consecutive
iterations falls below convergence_threshold. Returns FALSE
if either ELBO value is NULL or NA.
checkConvergence(elbo_c, elbo_prev, convergence_threshold)
elbo_c |
Numeric scalar. ELBO at the current iteration. |
elbo_prev |
Numeric scalar. ELBO at the previous iteration. |
convergence_threshold |
Positive scalar. Tolerance for convergence. |
Logical scalar.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.