Skip to content

Instantly share code, notes, and snippets.

@oborchers
Created June 7, 2019 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oborchers/676cd7e838dcb5257c2f9bfab8519129 to your computer and use it in GitHub Desktop.
Save oborchers/676cd7e838dcb5257c2f9bfab8519129 to your computer and use it in GitHub Desktop.
for w in s:
if w in vlookup:
# The loop over the the vector dimensions is completely unecessary and extremely slow
v += ( alpha / (alpha + (vlookup[w].count / Z))) * vectors[w]
count += 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment