Skip to content

Commit

Permalink
tests: increase MC sampling, chains
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyPlanden committed Nov 20, 2024
1 parent 16b9289 commit 6a4d698
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/integration/test_monte_carlo_thevenin.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,10 @@ def test_sampling_thevenin(self, sampler, posterior, map_estimate):
x0 = np.clip(map_estimate + np.random.normal(0, 1e-3, size=2), 1e-4, 1e-1)
common_args = {
"log_pdf": posterior,
"chains": 1,
"chains": 3,
"warm_up": 550,
"cov0": [2e-3, 2e-3],
"max_iterations": 1000,
"max_iterations": 2000,
"x0": x0,
}

Expand All @@ -146,7 +146,7 @@ def test_sampling_thevenin(self, sampler, posterior, map_estimate):
np.testing.assert_array_less(0, ess)
if not isinstance(sampler, RelativisticMCMC):
np.testing.assert_array_less(
summary.rhat(), 1.5
summary.rhat(), 1.2
) # Large rhat, to enable faster tests

# Assert both final sample and posterior mean
Expand Down

0 comments on commit 6a4d698

Please sign in to comment.