def test_entropy_posterior_gets_smaller(self, N=10):
    PRNG = np.random.RandomState(seed=8675309)
    for trial in range(3):
      X = PRNG.randn(N, self.distr.D) + self.distr.m
      x = np.sum(X,axis=0)
      xxT = np.dot(X.T,X)
      SS = SuffStatBag(K=1, D=self.distr.D)
      SS.setField('N', [N], dims='K')
      SS.setField('x', [x], dims=('K','D'))
      SS.setField('xxT', [xxT], dims=('K','D','D'))
      postD = self.distr.get_post_distr(SS, 0)
      assert postD.D == self.distr.D
      Hpost = postD.entropyWish()
      Hprior = self.distr.entropyWish()
      print 'Prior %.3g, Post %.3g' % (Hprior, Hpost)
      assert Hprior < Hpost
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/distr/TestGaussWishDistr.py/TestGaussWishDistr.test_entropy_posterior_gets_smaller/swapped operands of `<`