-
Notifications
You must be signed in to change notification settings - Fork 15
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
VpTree does not accept float in knncolle #18
Comments
Hopefully fixed by ff42321. Note that |
@LTLA Thank you very much for the quick fix, do you know how I can specify Annoy as a template parameter for Umap ? is there an example that shows how this is done ? |
The umappp::Umap x;
knncolle::AnnoyEuclidean<> searcher(ndim, nobs, data.data());
x.run(&searcher, 2, embedding.data()); You might need to add TBH I don't usually use this method signature for If you want some more inspiration, check out these bindings: |
Perfect, thank you very much, I will keep this open for a while until I have the chance to run it again and let you know if I have any question |
Hi Aaron,
It seems that VpTree does not accept float value as the std::tuple is hard coded to double.
Here is the code:
https://github.com/LTLA/knncolle/blob/3ad6b8cdbd281d78c77390d5a6ded4513bdf3860/include/knncolle/VpTree/VpTree.hpp#L76
Here is the error when trying to use float for Umap:
It seems that
const INTERNAL_t*,
is not being propagated correctly from umap, and it is using the default value causing the above error.I know this is belong to the knn repo, but it is here when the error is happening.
Any easy solution ?
Many thanks
The text was updated successfully, but these errors were encountered: