File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ def test_deterministic_of_observed(self):
416
416
assert np .allclose (ppc ["in_1" ] + ppc ["in_2" ], ppc ["out" ], rtol = rtol )
417
417
418
418
def test_var_name_order_invariance (self ):
419
- obs_a = theano .shared (np .array ([10. , 20. , 30. ]))
419
+ obs_a = theano .shared (pm . theanof . floatX ( np .array ([10. , 20. , 30. ]) ))
420
420
with pm .Model () as m :
421
421
pm .Normal ('mu' , 3 , 5 )
422
422
a = pm .Normal ('a' , 20 , 10 , observed = obs_a )
@@ -437,7 +437,6 @@ def test_var_name_order_invariance(self):
437
437
assert np .all (ppc1 ["b" ] == ppc2 ["b" ])
438
438
assert np .allclose (ppc1 ["b" ], (2 * ppc1 ["a" ]))
439
439
440
-
441
440
def test_deterministic_of_observed_modified_interface (self ):
442
441
meas_in_1 = pm .theanof .floatX (2 + 4 * np .random .randn (100 ))
443
442
meas_in_2 = pm .theanof .floatX (5 + 4 * np .random .randn (100 ))
You can’t perform that action at this time.
0 commit comments