Created
May 15, 2018 16:10
-
-
Save BalazsHoranyi/7ccb0daa92b58cdbda38081da1d2abdf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from annoy import AnnoyIndex | |
f = 32 | |
t = AnnoyIndex(f) | |
for i in range(len(item_embeddings)): | |
t.add_item(i, item_embeddings[i]) | |
t.build(10) # 10 trees | |
t.save('github.ann') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment