def calcExpPI(self, Pi):
    ELogPi = np.zeros((self.G, self.K+1))
    for i in xrange(self.G):
       ELogPi[i] = digamma(Pi[i,:]) - digamma(np.sum(Pi[i,:]))
    return ELogPi
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/allocmodel/admix/TestHDPBetaOptimizer.py/TestHBOK2.calcExpPI/original