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

Why does the knn calculation return the farthest distance #2145

Closed
zyq213 opened this issue Dec 6, 2023 · 1 comment
Closed

Why does the knn calculation return the farthest distance #2145

zyq213 opened this issue Dec 6, 2023 · 1 comment
Labels

Comments

@zyq213
Copy link

zyq213 commented Dec 6, 2023

Doesn't knn find the TopK minimum?
+--------------+------+------+-----------+-----------------------+
|features |labels|values|conditioner|matches |
+--------------+------+------+-----------+-----------------------+
|[2.0,2.0,2.0] |2 |0 |[0, 1] |[{4, 28.0}, {3, 24.0}] |
|[2.0,2.0,4.0] |3 |1 |[0, 1] |[{4, 48.0}, {3, 40.0}] |
|[2.0,2.0,6.0] |0 |2 |[0, 1] |[{4, 68.0}, {3, 56.0}] |
|[2.0,2.0,8.0] |2 |3 |[0, 1] |[{4, 88.0}, {3, 72.0}] |
|[2.0,2.0,10.0]|3 |4 |[0, 1] |[{4, 108.0}, {3, 88.0}]|
+--------------+------+------+-----------+-----------------------+

Copy link

github-actions bot commented Dec 6, 2023

Hey @zyq213 👋!
Thank you so much for reporting the issue/feature request 🚨.
Someone from SynapseML Team will be looking to triage this issue soon.
We appreciate your patience.

@github-actions github-actions bot added the triage label Dec 6, 2023
@zyq213 zyq213 closed this as completed Dec 14, 2023
@github-actions github-actions bot reopened this Dec 14, 2023
@zyq213 zyq213 closed this as completed Dec 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant