Minor speed/accuracy improvement for kde() (gh-119910)

This commit is contained in:
Raymond Hettinger 2024-06-01 10:49:14 -05:00 committed by GitHub
parent 90ec19fd33
commit ce2ea7d629
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 9 deletions

View file

@ -2444,7 +2444,7 @@ class TestKDE(unittest.TestCase):
with self.subTest(kernel=kernel):
cdf = kde([0.0], h=1.0, kernel=kernel, cumulative=True)
for x in xarr:
self.assertAlmostEqual(invcdf(cdf(x)), x, places=5)
self.assertAlmostEqual(invcdf(cdf(x)), x, places=6)
@support.requires_resource('cpu')
def test_kde_random(self):