Ejemplo n.º 1
0
	def perplexity(self):

		"""
		Compute perplexity for each sample.
		"""

		return samplers_lda.perplexity_comp(self.docid,self.tokens,self.tt,self.dt,self.N,self.K,self.samples)
Ejemplo n.º 2
0
    def perplexity(self):
        """
        Compute perplexity for each sample.
        """

        return samplers_lda.perplexity_comp(self.docid, self.tokens, self.tt,
                                            self.dt, self.N, self.K,
                                            self.samples)