def _get_m(self,trans_counts): if not (0 == trans_counts).all(): m = sample_crp_tablecounts(self.alpha,trans_counts,self.beta) else: m = np.zeros_like(trans_counts) self.m = m return m
def _get_m(self,trans_counts): if not (0 == trans_counts).all(): m = sample_crp_tablecounts(self.alpha,trans_counts,self.beta) else: m = np.zeros_like(trans_counts) self.m = m return m