Skip to content

Commit

Permalink
Fix issue probably-meant-fstring found at https://codereview.doctor (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
code-review-doctor committed Apr 24, 2022
1 parent 93ed2fb commit 533da75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gensim/test/test_word2vec.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,9 +580,9 @@ def test_evaluate_word_pairs(self):
pearson = correlation[0][0]
spearman = correlation[1][0]
oov = correlation[2]
self.assertTrue(0.1 < pearson < 1.0, "pearson {pearson} not between 0.1 & 1.0")
self.assertTrue(0.1 < spearman < 1.0, "spearman {spearman} not between 0.1 and 1.0")
self.assertTrue(0.0 <= oov < 90.0, "OOV {oov} not between 0.0 and 90.0")
self.assertTrue(0.1 < pearson < 1.0, f"pearson {pearson} not between 0.1 & 1.0")
self.assertTrue(0.1 < spearman < 1.0, f"spearman {spearman} not between 0.1 and 1.0")
self.assertTrue(0.0 <= oov < 90.0, f"OOV {oov} not between 0.0 and 90.0")

def test_evaluate_word_pairs_from_file(self):
"""Test Spearman and Pearson correlation coefficients give sane results on similarity datasets"""
Expand Down

0 comments on commit 533da75

Please sign in to comment.