From e3a6d504f8497aba102188ccfa2824ebf5ce13d5 Mon Sep 17 00:00:00 2001 From: Osvaldo A Martin Date: Sat, 18 May 2024 12:41:31 -0300 Subject: [PATCH] relax mle test (#441) --- preliz/tests/test_mle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/preliz/tests/test_mle.py b/preliz/tests/test_mle.py index 81975183..00f96b14 100644 --- a/preliz/tests/test_mle.py +++ b/preliz/tests/test_mle.py @@ -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 [ @@ -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