-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
adding nan_euclidean metric #3355
Comments
We can make an enhancement of it. https://github.com/facebookresearch/faiss/blob/main/faiss/utils/extra_distances-inl.h this will enable them for FlatCodes search and HNSW search. |
Summary: #3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Differential Revision: D57017608
Summary: #3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Differential Revision: D57017608
Summary: #3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Reviewed By: mdouze Differential Revision: D57017608
Summary: #3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Reviewed By: mdouze Differential Revision: D57017608
Summary: #3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Reviewed By: mdouze Differential Revision: D57017608
Summary: Pull Request resolved: #3414 #3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Reviewed By: mdouze Differential Revision: D57017608 fbshipit-source-id: ba14458b92c8b055f3bf2a871565175935c8333a
Is this going to be implemented for the gpu case? |
CPU implementation of NaNEuclidean is complete. GPU implementation of NaNEuclidean is not currently prioritized. If you would like NanEuclidean on GPU, please file another issue and provide details of your use case. |
Summary: Pull Request resolved: facebookresearch#3414 facebookresearch#3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Reviewed By: mdouze Differential Revision: D57017608 fbshipit-source-id: ba14458b92c8b055f3bf2a871565175935c8333a
Summary: Pull Request resolved: facebookresearch#3414 facebookresearch#3355 A couple open questions: - Given L2 was squared, I figured I would leave this one as squared as well? - Also, wasn't sure if we wanted to return nan when present == 0 or -1? Reviewed By: mdouze Differential Revision: D57017608 fbshipit-source-id: ba14458b92c8b055f3bf2a871565175935c8333a
Summary
Sklearn has recently added support for the nan_euclidean as detailed in this issue scikit-learn/scikit-learn#25319
Is it possible this will be added to faiss in the future? thank you.
The text was updated successfully, but these errors were encountered: