Skip to content

Commit 4312a84

Browse files
Spaaktwiecki
authored andcommitted
apply transform to a distribution's test value (pymc-devs#1358)
1 parent 2e62ba3 commit 4312a84

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,8 @@ def __init__(self, type=None, owner=None, index=None, name=None,
694694

695695
theano.Apply(theano.compile.view_op, inputs=[
696696
normalRV], outputs=[self])
697-
self.tag.test_value = normalRV.tag.test_value
697+
self.tag.test_value = transform.forward(
698+
normalRV.tag.test_value).eval()
698699

699700
incorporate_methods(source=distribution, destination=self,
700701
methods=['random'],

0 commit comments

Comments
 (0)