Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pymc3/tests/test_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,11 @@ def test_mle_jacobian():
with model:
map_estimate = find_MAP(model=model)

np.testing.assert_allclose(map_estimate["mu_i"], truth)
rtol = 1E-5 # this rtol should work on both floatX precisions
np.testing.assert_allclose(map_estimate["mu_i"], truth, rtol=rtol)

start, model, _ = models.simple_normal(bounded_prior=True)
with model:
map_estimate = find_MAP(model=model)

np.testing.assert_allclose(map_estimate["mu_i"], truth)
np.testing.assert_allclose(map_estimate["mu_i"], truth, rtol=rtol)