Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

celda (version 0.0.0.9000)

calculate_perplexity: Calculate the perplexity from a single celda chain

Description

Perplexity is defined as the inverse of the geometric mean of the log-likelihoods over all iterations of Gibbs sampling.

Usage

calculate_perplexity(completeLogLik, log = FALSE)

Arguments

completeLogLik

The complete Gibbs sampling history of log-likelihoods for a single celda chain

log

Set log to TRUE to visualize the log(perplexity) of Celda_CG objects.

Value

The perplexity for the provided chain as an mpfr number