Skip to content

Commit

Permalink
Add testval to flaky test (#4707)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 authored May 25, 2021
1 parent b06c928 commit 0970af0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pymc3/tests/test_sampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,10 +688,10 @@ def test_deterministic_of_observed_modified_interface(self):
meas_in_1 = pm.aesaraf.floatX(2 + 4 * np.random.randn(100))
meas_in_2 = pm.aesaraf.floatX(5 + 4 * np.random.randn(100))
with pm.Model() as model:
mu_in_1 = pm.Normal("mu_in_1", 0, 1)
sigma_in_1 = pm.HalfNormal("sd_in_1", 1)
mu_in_2 = pm.Normal("mu_in_2", 0, 1)
sigma_in_2 = pm.HalfNormal("sd__in_2", 1)
mu_in_1 = pm.Normal("mu_in_1", 0, 1, testval=0)
sigma_in_1 = pm.HalfNormal("sd_in_1", 1, testval=1)
mu_in_2 = pm.Normal("mu_in_2", 0, 1, testval=0)
sigma_in_2 = pm.HalfNormal("sd__in_2", 1, testval=1)

in_1 = pm.Normal("in_1", mu_in_1, sigma_in_1, observed=meas_in_1)
in_2 = pm.Normal("in_2", mu_in_2, sigma_in_2, observed=meas_in_2)
Expand Down

0 comments on commit 0970af0

Please sign in to comment.