From 53060f15dc56207c26d245fffbb5d298c36c7c9e Mon Sep 17 00:00:00 2001 From: Xingjian Shi Date: Wed, 28 Feb 2018 15:19:35 -0800 Subject: [PATCH] set a lower success_rate (#9927) --- python/mxnet/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/mxnet/test_utils.py b/python/mxnet/test_utils.py index 1f3853b3cd8a..91459de9d2ad 100644 --- a/python/mxnet/test_utils.py +++ b/python/mxnet/test_utils.py @@ -1845,7 +1845,7 @@ def chi_square_check(generator, buckets, probs, nsamples=1000000): _, p = ss.chisquare(f_obs=obs_freq, f_exp=expected_freq) return p, obs_freq, expected_freq -def verify_generator(generator, buckets, probs, nsamples=1000000, nrepeat=5, success_rate=0.25): +def verify_generator(generator, buckets, probs, nsamples=1000000, nrepeat=5, success_rate=0.15): """Verify whether the generator is correct using chi-square testing. The test is repeated for "nrepeat" times and we check if the success rate is