Skip to content

Now search_knn_dist returns the distances with the point itself#49

Open
harish1996 wants to merge 1 commit intostefankoegl:masterfrom
harish1996:master
Open

Now search_knn_dist returns the distances with the point itself#49
harish1996 wants to merge 1 commit intostefankoegl:masterfrom
harish1996:master

Conversation

@harish1996
Copy link

Adds the distances also with the point itself during calls of search_knn_dist. Calculating distances of each of the nodes again is redundant. If one doesn't need the distances, they can just ignore it and just form a new list using list comprehension.

only_nodes = [ i[0] for i in results ]

@harish1996 harish1996 mentioned this pull request Jun 25, 2020
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.05%) to 86.268% when pulling 63c586d on harish1996:master into 587edc7 on stefankoegl:master.

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.

2 participants