gensim.models.LdaModel.log_perplexity

LdaModel.log_perplexity(chunk, total_docs=None)[source]

Calculate and return per-word likelihood bound, using the chunk of documents as evaluation corpus. Also output the calculated statistics. incl. perplexity=2^(-bound), to log at INFO level.