Skip to content

Add example with skip option to documentation #163

@juliohm

Description

@juliohm

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions