def tt_comp(self, sampled_topics):

        """
        Compute term-topic matrix from sampled_topics.
        """

        samples = sampled_topics.shape[0]
        tt = np.zeros((self.V, self.K, samples))

        for s in range(samples):            
            tt[:, :, s] = \
                samplers_lda.tt_comp(self.tokens, sampled_topics[s, :],
                                     self.N, self.V, self.K, self.beta)

        return tt
Compute term-topic matrix from sampled_topics.