check_convergence: Checks if the algorithim has converged with the given...

View source: R/elbo_convergence.R View source: R/elbo_calculation.R

check_convergenceR Documentation

Checks if the algorithim has converged with the given threshold

Description

Checks if the algorithim has converged with the given threshold

Usage

check_convergence(prev_elbo, curr_elbo, convergence_threshold)

Arguments

prev_elbo

The elbo value from the previous iteration

curr_elbo

The elbo value from the current iteration

convergence_threshold

The threshold that determines when the model has converged

Value

A boolean whether the algorithim has converged

Examples

check_convergence(prev_elbo, curr_elbo, convergence_threshold)

jewelltaylor/funclustVI documentation built on June 1, 2022, 12:30 p.m.