Skip to content

Commit

Permalink
Update hypothesis test condition.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 563147229
  • Loading branch information
ursk authored and tensorflower-gardener committed Sep 6, 2023
1 parent 90a78ae commit b15c605
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def testCDF(self, dist):

loc, scale, conc = self.evaluate([dist.loc, dist.scale, dist.concentration])
hp.assume(abs(loc / scale) < 1e7)
hp.assume(abs(conc) > 1e-12)
hp.assume((abs(conc) > 1e-12) or (conc == 0.))
expected_cdf = sp_stats.genpareto(conc, loc=loc, scale=scale).cdf(xs)
actual_cdf = self.evaluate(cdf)
msg = ('Location: {}, scale: {}, concentration: {}, xs: {} '
Expand Down

0 comments on commit b15c605

Please sign in to comment.