Skip to content

Commit

Permalink
tighten test_parallel bound
Browse files Browse the repository at this point in the history
  • Loading branch information
austereantelope committed Dec 10, 2021
1 parent 48d6e55 commit e95cb8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/test/test_word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ def test_parallel(self):
# the exact vectors and therefore similarities may differ, due to different thread collisions/randomization
# so let's test only for top10
neighbor_rank = [word for word, sim in sims].index(expected_neighbor)
self.assertLess(neighbor_rank, 20)
self.assertLess(neighbor_rank, 2)

def test_r_n_g(self):
"""Test word2vec results identical with identical RNG seed."""
Expand Down

0 comments on commit e95cb8c

Please sign in to comment.