Skip to content

Commit

Permalink
Seed test_tuning::test_mle_jacobian test
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Jul 13, 2021
1 parent 205aef6 commit 0b1ecdb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pymc3/tests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def simple_normal(bounded_prior=False):
sd = 1.0
a, b = (9, 12) # bounds for uniform RV, need non-symmetric to reproduce issue

with pm.Model() as model:
with pm.Model(rng_seeder=2482) as model:
if bounded_prior:
mu_i = pm.Uniform("mu_i", a, b)
else:
Expand Down
3 changes: 1 addition & 2 deletions pymc3/tests/test_tuning.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from pymc3.step_methods.metropolis import tune
from pymc3.tests import models
from pymc3.tests.helpers import select_by_precision
from pymc3.tuning import find_MAP, scaling


Expand All @@ -37,7 +36,7 @@ def test_guess_scaling():
def test_mle_jacobian():
"""Test MAP / MLE estimation for distributions with flat priors."""
truth = 10.0 # Simple normal model should give mu=10.0
rtol = select_by_precision(float64=1e-6, float32=1e-4)
rtol = 1e-5 # this rtol should work on both floatX precisions

start, model, _ = models.simple_normal(bounded_prior=False)
with model:
Expand Down

0 comments on commit 0b1ecdb

Please sign in to comment.