def test_model_matches_ground_truth_as_precheck(self):
    np.set_printoptions(precision=3,suppress=True)
    # Advance the model several iterations
    for rr in range(5):
      self.run_Estep_then_Mstep()
    for k in range(self.hmodel.obsModel.K):
      logtopicWordHat = self.hmodel.obsModel.comp[k].Elogphi
      topicWordHat = np.exp(logtopicWordHat)
      diffVec = np.abs(topicWordHat - self.Data.TrueParams['topics'][k])
      print diffVec
      print ' '
      assert np.max(diffVec) < 0.04


  ######################################################### run_merge_move
  #########################################################  full tests
Verify HDPmodel is able to learn ground truth parameters
dataset/ETHPy150Open daeilkim/refinery/refinery/bnpy/bnpy-dev/tests/merge/TestMergeHDPTopicModel.py/TestMergeHDP.test_model_matches_ground_truth_as_precheck