Skip to content

Commit f885c06

Browse files
committed
Increase test tolerance for upcoming JAX PRNG change.
PiperOrigin-RevId: 580168763
1 parent d70611e commit f885c06

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tensorflow_probability/python/experimental/mcmc/diagonal_mass_matrix_adaptation_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,11 +317,11 @@ def testMeanGoesInRightDirection(self):
317317
initial_running_variance=initial_running_variance)
318318

319319
# This number started at `error_factor`. Make sure the mean is now at least
320-
# 75% closer.
320+
# 50% closer.
321321
final_mean_diff = tf.abs(results.final_mean - results.true_mean)
322322
np.testing.assert_array_less(
323323
self.evaluate(final_mean_diff),
324-
self.evaluate(0.25 * error_factor))
324+
self.evaluate(0.5 * error_factor))
325325

326326
def testDoesNotGoesInWrongDirection(self):
327327
# As above, we test a weaker property, which is that the variance and

0 commit comments

Comments
 (0)