Skip to content

Commit

Permalink
fix import issue in dist math
Browse files Browse the repository at this point in the history
  • Loading branch information
bwengals committed Oct 20, 2023
1 parent 310f7e1 commit a2026f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pymc_experimental/tests/distributions/test_continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import platform

import numpy as np
import numpy.testing as npt
import pymc as pm

# general imports
Expand Down Expand Up @@ -46,7 +47,7 @@ class TestPCPriorStudentT_dof:
numerical approximation out to the tail.
"""

@pytest.mark.parameterize(
@pytest.mark.parametrize(
"test_case",
[
{"U": 30, "alpha": 0.5, "dof": 5, "inla_result": -4.792407},
Expand All @@ -60,7 +61,7 @@ class TestPCPriorStudentT_dof:
)
def test_logp(self, test_case):
d = PCPriorStudentT_dof.dist(U=test_case["U"], alpha=test_case["alpha"])
npt.assert_allclose(pm.logp(d, test_case["dof"]), test_case["inla_result"], rtol=0.1)
npt.assert_allclose(pm.logp(d, test_case["dof"]).eval(), test_case["inla_result"], rtol=0.1)


class TestGenExtremeClass:
Expand Down

0 comments on commit a2026f5

Please sign in to comment.