Lines Matching +refs:tot +refs:comp
217 tot = z_mat.sum(axis=-1, keepdims=True)
222 zcnts = 1 - tot * delta
760 comp = np.zeros(mat_idx.shape)
761 comp[:, denominator_idx] = 1 / (np.exp(mat).sum(axis=1) + 1)
762 numerator_idx = list(range(0, comp.shape[1]))
765 comp[:, i] = comp[:, denominator_idx] * np.exp(mat_idx[:, i])
768 comp = np.zeros(mat_idx.shape)
769 comp[denominator_idx] = 1 / (np.exp(mat).sum(axis=0) + 1)
770 numerator_idx = list(range(0, comp.shape[0]))
773 comp[i] = comp[denominator_idx] * np.exp(mat_idx[i])
776 return comp