Created
June 7, 2019 16:34
-
-
Save oborchers/676cd7e838dcb5257c2f9bfab8519129 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
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