Skip to content

Commit 64496cd

Browse files
committed
test random
1 parent efa8dc6 commit 64496cd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pymc3/tests/test_bart.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import numpy as np
22

33
from numpy.random import RandomState
4+
from numpy.testing import assert_almost_equal
45

56
import pymc3 as pm
67

@@ -61,6 +62,6 @@ def test_bart_random():
6162
rng = RandomState(12345)
6263
pred_first = mu.owner.op.rng_fn(rng, X_new=X[:10])
6364

64-
assert np.all(pred_first == pred_all[0, :10])
65+
assert_almost_equal(pred_first, pred_all[0, :10], decimal=4)
6566
assert pred_all.shape == (2, 50)
6667
assert pred_first.shape == (10,)

0 commit comments

Comments
 (0)