Skip to content

Minor speed/accuracy improvement for kde()#119910

Merged
rhettinger merged 3 commits into
python:mainfrom
rhettinger:kde_accuracy
Jun 1, 2024
Merged

Minor speed/accuracy improvement for kde()#119910
rhettinger merged 3 commits into
python:mainfrom
rhettinger:kde_accuracy

Conversation

@rhettinger

Copy link
Copy Markdown
Contributor

Use single-rounding sumprod(). Store coefficients as a precomputed tuple of exactly representable values. Improves the cdf/invcdf roundtrip test to six place accuracy.

@rhettinger rhettinger added skip issue skip news 3.14 bugs and security fixes labels Jun 1, 2024
@rhettinger rhettinger merged commit ce2ea7d into python:main Jun 1, 2024
@rhettinger rhettinger deleted the kde_accuracy branch June 1, 2024 15:49
barneygale pushed a commit to barneygale/cpython that referenced this pull request Jun 5, 2024
noahbkim pushed a commit to hudson-trading/cpython that referenced this pull request Jul 11, 2024
estyxx pushed a commit to estyxx/cpython that referenced this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3.14 bugs and security fixes skip issue skip news

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant