We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8a3c95 commit 37f3ebfCopy full SHA for 37f3ebf
pymc/tests/test_model.py
@@ -1269,8 +1269,12 @@ def test_interval_missing_observations():
1269
)
1270
assert np.all(np.var(pp_trace["theta1"], 0) > 0.0)
1271
assert np.all(np.var(pp_trace["theta2"], 0) > 0.0)
1272
- assert np.mean(pp_trace["theta1"][:, ~obs1.mask] - pp_trace["theta1_observed"]) == 0.0
1273
- assert np.mean(pp_trace["theta2"][:, ~obs2.mask] - pp_trace["theta2_observed"]) == 0.0
+ assert np.isclose(
+ np.mean(pp_trace["theta1"][:, ~obs1.mask] - pp_trace["theta1_observed"]), 0
1274
+ )
1275
1276
+ np.mean(pp_trace["theta2"][:, ~obs2.mask] - pp_trace["theta2_observed"]), 0
1277
1278
1279
1280
def test_double_counting():
0 commit comments