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
Can you please confirm that the
skip
function inknn
is a function that takes an indexi
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:
Is that the correct usage of the option?