def test_norm_logpdf_generator(x, mu, std):
def test(self):
scipy_d = norm(mu, std) # scipy normal distribution
logpdf_scipy = scipy_d.logpdf(x)
logpdf = lth.norm_logpdf(x, mu, std)
# self.assertEqual(True, False)
np.testing.assert_allclose(logpdf, logpdf_scipy)
return test
评论列表
文章目录