Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
model = neighbors.NearestNeighbors(n_neighbors=6, algorithm='ball_tree')
model.fit(features)
dist, idlist = model.kneighbors(features)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment