Perplexity is defined as the inverse of the geometric mean of the log-likelihoods over all iterations of Gibbs sampling.
calculate_perplexity(completeLogLik, log = FALSE)
The complete Gibbs sampling history of log-likelihoods for a single celda chain
Set log to TRUE to visualize the log(perplexity) of Celda_CG objects.
The perplexity for the provided chain as an mpfr number