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