logLik-methods: Methods for Function logLik

logLik-methodsR Documentation

Methods for Function logLik

Description

Compute the log-likelihood.

Methods

object = TopicModel:

Compute the log-likelihood of a "TopicModel" object. For "VEM" objects the sum of the log-likelihood of all documents given the parameters for the topic distribution and for the word distribution of each topic is approximated using the variational parameters and underestimates the log-likelihood by the Kullback-Leibler divergence between the variational posterior probability and the true posterior probability.

object = Gibbs_list:

Compute the log-likelihoods of the "TopicModel" objects contained in the "Gibbs_list" object.


topicmodels documentation built on Nov. 27, 2023, 9:07 a.m.