Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make gaussian_kde faster #200

Closed
fealho opened this issue Dec 22, 2020 · 0 comments · Fixed by #201
Closed

Make gaussian_kde faster #200

fealho opened this issue Dec 22, 2020 · 0 comments · Fixed by #201
Assignees
Labels
internal The issue doesn't change the API or functionality
Milestone

Comments

@fealho
Copy link
Member

fealho commented Dec 22, 2020

The current implementation of the GaussianKDE is very slow, particularly for sampling.

I believe the culprit is the line below, since it calls scipy's ndtr so many times:

uppers = np.vstack([ndtr((x - self._model.dataset) / stdev)[0] for x in X])
@csala csala added this to the 0.3.4 milestone Jan 22, 2021
@csala csala added the internal The issue doesn't change the API or functionality label Jan 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal The issue doesn't change the API or functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants