-
Notifications
You must be signed in to change notification settings - Fork 545
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
[BUG] Cuml nearest neighbors returns wrong distances #4624
Labels
bug
Something isn't working
Comments
siegrikw
added
? - Needs Triage
Need team to review and classify
bug
Something isn't working
labels
Mar 9, 2022
The bug does not appear in Rapids 21.06. Reverting back to 21.06 and running the code above returned the intended behavior |
This might be due to rapidsai/raft#568. k<=64 is when the fused kernel is enabled. |
rapids-bot bot
pushed a commit
to rapidsai/raft
that referenced
this issue
Mar 31, 2022
…604) This PR fixes issue - #568 and rapidsai/cuml#4624 -- fix issue in fusedL2knn which happens when rows are multiple of 256. -- make index value to be size_t to avoid int overflow though this doesn't hamper these issues but it may for higher input sizes. -- also add some additional test cases in fusedL2knn test. Authors: - Mahesh Doijade (https://github.com/mdoijade) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #604
@siegrikw we have fixed this from our side. Closing this issue for now, but feel free to open it again if the bug persists |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When n_neighbors is in the following range (1 to 64) for 256 rows exactly (no less no more) the distances and indices returned are invalid:
n_rows = 256
n_neighbors = 1 < n_neighbors <= 64
Steps/Code to reproduce bug
Expected behavior
The first distance for every point should be 0 (i.e. the point should be its own nearest-neighbor) as returned by sklearn.neighbors.NearestNeighbors, and all of the indices should not be identically set to 0
Environment details (please complete the following information):
conda list
and include results hereThe text was updated successfully, but these errors were encountered: