-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
accuracy function for analogy test error #2455
Comments
@piskvorky You are correct. Whereas previously According to a quick grep, there are no callers other than Note that due to changes in Python 3, @vlfgns5's fix ( |
Digging deeper into this, properly supporting < if indexer is not None:
> if indexer is not None and isinstance(topn, int):
return indexer.most_similar(mean, topn) This is a separate issue that has not yet been reported, but it should perhaps be fixed together with this, see PR #2461. |
Problem description
Analogy test for accuracy function does not work properly because of the typo (topn = False) on line 1187 in keyedvectors.py script.
(https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/models/keyedvectors.py)
Solution
There are 2 solutions regarding this matter: changing the typo in accuracy function or changing the most_smiliar function
(https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/models/keyedvectors.py)
(https://github.com/RaRe-Technologies/gensim/blob/develop/gensim/models/keyedvectors.py)
AND
Versions
The text was updated successfully, but these errors were encountered: