def latent_perplexity(self):
"""Compute perplexity = exp(entropy) of latent variables.
Perplexity is an information theoretic measure of the number of
clusters or latent classes. Perplexity is a real number in the range
[1, M], where M is model_num_clusters.
Returns:
A [V]-shaped numpy array of perplexity.
"""
return self._server.latent_perplexity()
评论列表
文章目录