mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Minor speed/accuracy improvement for kde() (gh-119910)
This commit is contained in:
parent
90ec19fd33
commit
ce2ea7d629
2 changed files with 10 additions and 9 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue