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

Add example with skip option to documentation #163

Open
juliohm opened this issue Aug 12, 2023 · 1 comment
Open

Add example with skip option to documentation #163

juliohm opened this issue Aug 12, 2023 · 1 comment

Comments

@juliohm
Copy link
Contributor

juliohm commented Aug 12, 2023

Can you please confirm that the skip function in knn is a function that takes an index i and returns true if that index should be skipped in the list of best indices?

Say I have a set of visited points that I want to update iteratively:

visited = Set([1])

skip(i) = i  visited

for i in 1:n
  inds, dists = knn(..., skip)
  push!(visited, i)
end

Is that the correct usage of the option?

@ghyatzo
Copy link

ghyatzo commented Jul 1, 2024

looking for an answer myself I found this reference: #49 (comment)
But it's a bit old.

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

No branches or pull requests

2 participants