code: def dt_comp(self, sampled_topics):
  
          
  
          samples = sampled_topics.shape[0]
          dt = np.zeros((self.D, self.K, samples))
  
          for s in range(samples):            
                  dt[:, :, s] = \
                      samplers_lda.dt_comp(self.docid, sampled_topics[s, :],
                                           self.N, self.K, self.D, self.alpha)
  
          return dt
docs: Compute document-topic matrix from sampled_topics.