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

3D point search #12

Open
chrisflesher opened this issue Oct 26, 2023 · 2 comments
Open

3D point search #12

chrisflesher opened this issue Oct 26, 2023 · 2 comments

Comments

@chrisflesher
Copy link

chrisflesher commented Oct 26, 2023

Hello, I tried using this for 3D vectors but am not getting great results... was wondering if something like this might be possible using this library?

import numpy as np
import annax
import scipy.spatial

data = np.random.random((1000, 3))
index = annax.Index(data)
query = np.random.random(3)
neighbors, distances = index.search(query, k=10)
print(distances)
sp_distances, sp_neighbors = scipy.spatial.cKDTree(data).query(query, k=10)
print(sp_distances)
@atksh
Copy link
Owner

atksh commented Oct 27, 2023

@chrisflesher Thanks for your issue. I'm gonna check it out.

@chrisflesher
Copy link
Author

chrisflesher commented Oct 27, 2023

Cool, thanks!

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

No branches or pull requests

2 participants