

def test_predict_prob(self):
    cur_dir = os.path.dirname(os.path.abspath(__file__))
    probs_res = np.loadtxt(os.path.join(cur_dir, 'results', 'predict_prob_poisson.csv'), delimiter=',')
    probs = cur_dir.res1.predict_prob()[:100]
    assert_almost_equal(probs, probs_res, 8)

dataset/ETHPy150Open statsmodels/statsmodels/statsmodels/discrete/tests/test_discrete.py TestPoissonNewton.test_predict_prob/VarMisuse@54/76 `self`->`cur_dir`