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

Improve runtime #24

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

hkariti
Copy link

@hkariti hkariti commented Jun 5, 2023

  • Accept a precomputed dist matrix instead of calculating ourselves
  • Use numpy operations for faster runtime

Tested on 1000 samples of scipy's half-moons with noise=0.24 and seed=1. Benchmark results on my machine:

master branch: time=128.46s memory=172864 KB
this branch: time=12.08s memory=164668 KB

- Accept a precomputed dist matrix instead of calculating ourselves
- Use numpy operations for faster runtime
@hkariti
Copy link
Author

hkariti commented Jun 5, 2023

Haven't noticed #17 before. I didn't compare their changes to mine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant