Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
from annoy import AnnoyIndex
index = AnnoyIndex(1)
for x in range(10000):
id = "%d000%d" % (x,x)
index.add_item(int(id),[x])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.