Skip to content

Commit

Permalink
relax mle test (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia authored May 18, 2024
1 parent 84e4a40 commit e3a6d50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions preliz/tests/test_mle.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
)
def test_auto_recover(distribution, params):
for _ in range(10):
sample = distribution(*params).rvs(10_000)
sample = distribution(*params).rvs(20_000)
dist = distribution()
try:
if dist.__class__.__name__ in [
Expand All @@ -119,7 +119,7 @@ def test_auto_recover(distribution, params):
]:
tol = 1
else:
tol = 0.1
tol = 0.5
pz.mle([dist], sample)
assert_allclose(dist.params, params, atol=tol)
break
Expand Down

0 comments on commit e3a6d50

Please sign in to comment.