Skip to content

[r] Fix knn_hnsw() input query rowname bug#334

Open
erliuu wants to merge 2 commits intobnprks:mainfrom
GreenleafLab:el/knn_hnsw-query-bugfix
Open

[r] Fix knn_hnsw() input query rowname bug#334
erliuu wants to merge 2 commits intobnprks:mainfrom
GreenleafLab:el/knn_hnsw-query-bugfix

Conversation

@erliuu
Copy link
Copy Markdown

@erliuu erliuu commented Apr 8, 2026

This pull request fixes a bug in knn_hnsw() where the rownames of the result matrices were incorrectly taken from data instead of query when a separate query matrix was provided. This caused the output to have wrong rownames (from the reference data) rather than the rownames corresponding to the actual query points. When no query is given, query is already set to data, so behavior is unchanged in that case. (r/R/clustering.R)

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

Successfully merging this pull request may close these issues.

1 participant