Skip to content

Commit facb43b

Browse files
committed
test sqrt of dist
1 parent db33f0d commit facb43b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/logprob/test_transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
from pytensor.graph.basic import equal_computations
4545

46-
from pymc.distributions.continuous import Cauchy
46+
from pymc.distributions.continuous import Cauchy, ChiSquared
4747
from pymc.logprob.basic import conditional_logp, icdf, logcdf, logp
4848
from pymc.logprob.transforms import (
4949
ArccoshTransform,
@@ -431,7 +431,7 @@ def test_sqr_transform(self):
431431

432432
def test_sqrt_transform(self):
433433
# The sqrt of a chisquare with n df is a chi distribution with n df
434-
x_rv = pt.sqrt(pt.random.chisquare(df=3, size=(4,)))
434+
x_rv = pt.sqrt(ChiSquared.dist(nu=3, size=(4,)))
435435
x_rv.name = "x"
436436

437437
x_vv = x_rv.clone()

0 commit comments

Comments
 (0)