Skip to content

Commit

Permalink
tighten test_topic_word (#3280)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Penkov <m@penkov.dev>
  • Loading branch information
austereantelope and mpenkov committed Mar 22, 2022
1 parent a4808c1 commit 546de20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gensim/test/test_ldaseqmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def test_topic_word(self):
topics = self.ldaseq.print_topics(0)
expected_topic_word = [('skills', 0.035999999999999997)]
self.assertEqual(topics[0][0][0], expected_topic_word[0][0])
self.assertAlmostEqual(topics[0][0][1], expected_topic_word[0][1], places=2)
self.assertAlmostEqual(topics[0][0][1], expected_topic_word[0][1], delta=0.0012)

# testing document-topic proportions
def test_doc_topic(self):
Expand Down

0 comments on commit 546de20

Please sign in to comment.